Questions tagged as 'c#'

4
answers

How can I download PDF from a web page automatically

Is there any way to download a PDF embed into a web page? I am currently using the control WebBrowser.ShowSaveAsDialog() (Save As) but need to do without it, automatically using C # Windows Forms My code: private void button1_Click...
asked by 24.11.2014 / 17:09
1
answer

Someone help me something is wrong here has 3 mistakes and I do not know how to get them! C # [closed]

using UnityEngine; public class PlayerMovement : MonoBehaviour { //Velocidade do Jogador public float speed = 6f; //Vetor responsavel pelo movimento Vector3 movement; //Responsavel pela transliçao da animaçao Animator an...
asked by 03.05.2015 / 00:04
2
answers

Doubts Gets / Sets

My project has 3 layers, DAL, BLL, Project I use ASP.NET I have an aspx page in the project, which has textbox containing new values for an update in the database. In the DAL class I have entity that automatically created GETs and SETs...
asked by 24.02.2016 / 17:22
1
answer

Collection does not allow foreach

I have a collection and inside I have another collection of images. I need to make a foreach chained to grab information from the first collection, and then the second foreach to get the images I have referring to the first looping. Here is m...
asked by 17.04.2014 / 23:20
1
answer

Doubt with foreach C # [closed]

Please. see the code at this link: link and tell me why the phrase does not come out with the jumbled lyrics; if possible, give me an idea of how to do the same thing with ores line string frase,frase0; Console.WriteLine("Digite a frase...
asked by 01.09.2018 / 15:47
1
answer

Compare lists that are exactly the same

I'm trying to implement a list comparison method that checks to see if they match. It should return true when the two lists passed by parameter are exactly the same (number of elements, elements and ordering). I was able to develop part of...
asked by 09.09.2018 / 02:29
2
answers

Can anyone explain this error to me? [closed]

I have 2 tables, products and suppliers. And the following message is appearing:    System.Data.SqlClient.SqlException: 'The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Products_Provider". The "C: \ USERS \ TIAGO \ DOCUMEN...
asked by 22.05.2018 / 02:28
1
answer

Replacement inside commas in C # [duplicate]

Good morning everyone. I have the following string: string frutas = "f1,f2,f3,f4,..."; Basically I want it to replace the word that is between the 3rd and 4th comma for something. for example: apple Looking like this: f1,f2,maçã,f4...
asked by 20.08.2018 / 17:32
1
answer

Calculation of days comes negative. Because?

I did this: DateTime dt = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1); int dias = (int)dt.Subtract(DateTime.Today).TotalDays; If you do for today (01/26/2018) the result in var dias is: -25 I just wanted to kn...
asked by 26.01.2018 / 20:52
1
answer

Generate Boleto Itau from a shipping file that is in .txt [closed]

I need to generate Itau PDF Boleto from a shipping file that is in .txt some suggestions to develop the application?     
asked by 18.07.2018 / 16:54