Questions tagged as '.net'

1
answer

Error Making CodeFirst in EnityFramework

This is the error that is occurring:   An unhandled exception of type 'System.TypeInitializationException'   occurred in EntityFramework.dll Additional information: O   initializer of type 'System.Data.Entity.Internal.AppConfig'   has thrown...
asked by 15.11.2016 / 18:08
1
answer

Hide form when pressing key

I created a form, I do not want to use minimize or maximize button, I want to use for example when pressing "F1" my form is hidden and press F1 again it reappears. I tried this, but without success: private void Form1_KeyDown(object...
asked by 15.11.2016 / 03:00
1
answer

How to tell if a System.Timers.Timer is running? [closed]

I need to know if a timer is running, if it is not, I will start it,     
asked by 15.07.2016 / 02:39
2
answers

DataReader opens and gives error for not closing

I have DataReader on my website to read the data the bank brings. I have a problem with VS, but I do not know how to do it.    There is already an open DataReader associated with this Command that must be closed first Would there be...
asked by 18.10.2016 / 14:24
2
answers

Return - Method called on form1, and return on form2

Well, good night, a doubt. I have a form1 that calls a class and a method, sending this method two string parameters, this method processes, and returns an int value. My question is, can I call this method on form1 and its return on form2?...
asked by 05.06.2016 / 23:39
1
answer

Are MVC and Webforms (with code-behind) paradigms mutually exclusive?

My question comes from an instructor's explanation that the MVC standard applied to the presentation layer, but when I came across #     
asked by 01.06.2016 / 13:11
2
answers

Converting a variable with replace to decimal

I am having a small question, I pass a 0,05 decimal value to a A variable of type string . After this variable receives this value, it converts , to point . , which is 0.05 After I do this replace, I co...
asked by 04.01.2016 / 18:58
1
answer

How to put 0x0D 0x0A at the end of a txt file

I have the code end of my txt file below and according to the recipe manual, asks me to put the characters 0x0D 0x0A at the end of the registration. How could I do this? ATT01 = DETIM.ValidaATT(item.Cells["att"].Value.ToString()).PadRight(1...
asked by 24.02.2016 / 21:57
1
answer

How to use SQL LIKE [duplicate]

I am trying to put together a string that makes a filter to compare only one piece of a numbering. I tried to make a resource and I looked for several ways to do it and so far I could not. using (NFSeDataContext context = new NFSeDataContext...
asked by 26.02.2016 / 18:22
1
answer

Error connecting to WebService + Soap + Android

Good afternoon, I have a problem connecting to the webservice. I'm using the ksoap2 library. public class CallSOAP { public final String SOAP_ACTION = "http://tempuri.org/yteste"; public final String OPERATION_NAME = "yteste"; pub...
asked by 26.01.2016 / 18:19