Questions tagged as '.net'

2
answers

Exception of type System.NullReferenceException

Soon after logging in to the system I try to access a page and the system sends me back to the login page and immediately after login again, this exception happens: "An exception of type 'System.NullReferenceException' occurred in MyProject. dll...
asked by 11.08.2016 / 16:09
1
answer

How to instantiate an abstract class in C #?

I know that the abstract class can not be instantiated. But I need to call it in Windows Forms and I'm not getting it.     
asked by 27.04.2018 / 17:33
2
answers

Remove half of file name [closed]

I have a page to get a path, which is Folder Browser Dialog and the path that is saved is like this: "C: \ ana \ Updates \ 2017 \ 2017_04 \" I wanted from the path to save in a variable only the result: 2017 \ 2017_04.     
asked by 29.05.2017 / 16:33
2
answers

Error in DateTime.TryParse

I'm having a problem converting using the code below: string vcto = "29/01/2018"; DateTime data; Boolean resp = DateTime.TryParse(vcto, out data); if (resp == false) { MessageBox.Show("ERRO...
asked by 28.09.2018 / 21:37
1
answer

Instances and variables in C #

In C # when you create a variable you create a value of a certain type, for example a bool can only receive true or false , a int integers and so on ... I wanted to know how these values would be classified, true...
asked by 24.10.2018 / 17:46
2
answers

How to iterate in a C # model with variables that have number?

I have a model that was made by another developer where it has several fields like this: . . . Teste() teste = new Teste(); teste.campo_1 = 1; teste.campo_2 = 2; teste.campo_3 = 3; teste.campo_4 = 4; teste.campo_5 = 5; How would you fill...
asked by 16.01.2018 / 18:51
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

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

What language do you study? [closed]

Next, I'm doing the 2nd semester of the Information System course and I'm in great doubt of which language to devote myself to learning! I would like to know what was the first language you learned and which is the most accepted language in t...
asked by 16.06.2015 / 16:21
2
answers

Create an object reference in its own method

Problem I want to get the last digits of this string , so I used the Substring() method, however I had to use the variable "numero" again within the Substring() method. string numero = "123456789"; string final = numero....
asked by 13.12.2018 / 12:57