Questions tagged as '.net'

1
answer

How do I retrieve data entered in GridView and then save it to the database?

On a certain sign-in screen, I have a GridView with some blank lines, so the user would have to enter the information on those lines, and then when clicking the save button, make the INSERT in the bank. p> How would you do when t...
asked by 31.08.2016 / 22:06
1
answer

Entity Framework does not convert INTEGER from Firebird to long from C #

I'm doing some testing with Entity Framework by mapping and migrating a database from a legacy system. Scenery Where I have a table similar to this: TESTE -------------------------------------- ID INTEGER NOT NULL, NOME VARCHAR(...
asked by 13.09.2016 / 17:01
1
answer

How to load ComboBox in C #? [closed]

I have 2 ComboBox: the 1st represents the provinces, the 2nd the municipalities. When the user clicks on ComboBox 1 and select a province I want their counties to appear in ComboBox 2.     
asked by 10.08.2016 / 16:23
2
answers

How to leave the selected line font in bold in DataGridView?

In the DataGridView of Windows Forms it is possible to change the font color and background color of the selected row easily using the DataGridView.DefaultCellStyle.SelectionBackColor DataGridView.DefaultCellStyle.SelectionForeColor But wha...
asked by 12.07.2016 / 19:13
1
answer

Differences between XmlReader, StreamReader and StringReader in deserialization

I asked the following question here in stackoverflow link question . During the deserialization, depending on the stream you use, an error can occur in the XML namespaces, depending on the question link. Examples of the code that has the...
asked by 19.08.2016 / 15:49
2
answers

Convert an IPAddress to string

This code gets the default gateway , but I can not convert the result to string and put it in a label . public static IPAddress GetDefaultGateway() { var card = NetworkInterface.GetAllNetworkInterfaces().FirstOrDefault(); if(c...
asked by 24.06.2016 / 02:24
1
answer

Separate items from a string using Regex

I need to separate the items from a string into an array using C # and Regex, could they help me? The string is as follows: required|email|min:2|max:255 There are some rules I wanted to fit: Separate the main items delimited by...
asked by 15.06.2016 / 21:51
1
answer

Change MonthCalendar Culture

Is it possible to change the date format of the MonthCalendar object of a WinForms application? It happens that the culture selected on a client's station is Polish and this is causing an error in handling application dates. I tried...
asked by 16.06.2016 / 23:23
1
answer

Format listview subitem

I have trouble setting the background color of the listview SubItem when returning query from the database. I need in column # 18, which will return values such as "Overdue" and "On Day", when the value returned is="Overdue" that subitem in colu...
asked by 28.06.2016 / 11:53
1
answer

"The best overloaded compatible method has some invalid arguments"

I'm creating a service with a method that has an argument of type List<OrdemPais>() , and passing an object of that type to the method, but at compile time the error appears: O melhor método sobrecarregado compatível com 'Mahikari....
asked by 28.09.2016 / 19:46