Questions tagged as 'c#'

1
answer

Convert string to DateTime C # [duplicate]

How do I get a string something like "01/30/2015", for example, and convert it to datetime and keep that same date format? Being able to validate the date.     
asked by 13.10.2015 / 21:14
0
answers

Display data data from an ID in the table in a textBox - C #

I need to make a select in the database to capture the id of the last product registration, I will make an increment and show it in textbox in my registration form. My intention is to show the user what will be the next i...
asked by 21.04.2018 / 17:21
1
answer

c # - TableAdapter - Delete

Good afternoon, I'm new to this area. I have to create the Include, Change, and Delete buttons for a sales system. I'm using the tableAdapter and I've been able to do the Include button as follows: private void btnInserir_Click(object send...
asked by 21.04.2018 / 21:01
0
answers

How to do Table with two foreach close tr / tr Asp.Net MVC

I need to make a table that each line has the information as picture below NoticethatinLot1toCitythedatadoesnotrepeateveryforeach,andonlyfromtheSpeciescolumndoesthedatarepeat,inthisrowtheforeachloops3timesandtheBatchcolumnsuptoCitysuffersarowsp...
asked by 15.04.2018 / 06:00
1
answer

Error creating SQL Server table with Entity Framework

Delete a table from my project directly in Management Studio. Now when I run the application this error is returned: system.data.sqlclient.sqlexception: Nome de objeto 'dbo.ContasPagarParcelas' inválido. I can not recreate the table. I'm...
asked by 15.04.2018 / 02:50
0
answers

Pass Login \ Password \ Enter to an external application. C # with Windows Forms

I used the last code in Program write in another textbox To enter the login / password in the third-party program. I did so: Process processo = Process.Start(@"C:\Program Files (x86)\ZKTeco\ZKAccess3.5\Access.exe"); IntPtr h = proces...
asked by 11.09.2018 / 15:05
1
answer

Error consuming webservice NFSe with mutual authentication - handshaking

I have a problem to consume the electronic invoice webservice of the city of Sertãozinho. The server in this NFS uses Tomcat with mutual authentication (handshaking). The production server address is: [https://nfe.sertaozinho.sp.gov.br:844...
asked by 11.04.2018 / 16:03
1
answer

Modal Global Asp.net Webforms

I created a modal, which I will practically use in all forms of the system, but I do not know how to call this modal in forms. This is the code of my modal, the page calls Modal.aspx, and the modal is the #modalexclusao <%@ Page Title="...
asked by 10.04.2018 / 15:51
0
answers

How to select text from another window?

Follow the code below: MainWindow.cs: " MainWindow ", has a textbox and the following code, shows a new window that is " Configuration ". var window = new Configuracao { Owner = this }; window.ShowDialog(); Configuration.cs:...
asked by 10.04.2018 / 19:17
0
answers

winforms aplicattion + mySqlServer 5.7

Failed to generate code. Object reference not set to an instance of an object. Erro no DataSet.xsd. I'm having problems changing my dataset.xsd , I can not add fields or make a new dataset/datasource . <?xml version="1.0" en...
asked by 14.04.2018 / 13:22