Posts by Rovann Linhalis • 14,881 points
567 posts
-
0
votes2
answers739
viewsA: Input string was not in an incorrect format
check the contents of the string before converting it to Int32, the numeric format cannot contain spaces or commas, not even empty. place a breakpoint on this line to check the value of the variable…
c#answered Rovann Linhalis 14,881 -
0
votes1
answer1686
viewsA: Input string was not in an incorrect format
in that passage: resp = Nproduto.Inserir(this.txtNome.Text, this.cbMarca.Text, this.cbUnidade.Text, Int32.Parse(this.txtCategoria.Text),…
c#answered Rovann Linhalis 14,881 -
0
votes2
answers4407
viewsA: Pass data between Forms
first, create a class for login data: public class Login { public string Nome {get;set;} public string Senha {get;set;} public string Email {get;set;} public DateTime Nascimento {get;set;} } and in…
-
1
votes1
answer981
viewsA: Take the data searchFornecedor and put in the form of product registration
come on: in the search form, create a Provider property to return it: public FornecedorDTO Retorno {get;set;} and I imagine the ok button will select the correct supplier ? in his code, do it like…
-
0
votes4
answers7923
viewsA: How do I give Enter and Run my SEARCH button
use the textbox Keypress event private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { //Executa a pesquisa } } another option, which I use, is Textchanged next…
-
0
votes2
answers930
viewsA: Understanding the documents of a SOAP web service
in your solution, in References, right click, follow Add Web Reference... , informs the address: "http://localhost/services/Assets? wsdl" (localhost) the service is on your local computer ? check…
-
1
votes1
answer128
viewsA: Compare and replace text in large volumes of data
I’ve never done anything like this, but from what I understand of your doubt, I’d start with a code like this: class Program { static void Main(string[] args) { List<Dicionario> dicionario =…
c#answered Rovann Linhalis 14,881 -
1
votes2
answers408
viewsA: Arduino serialporta with C#
you can write in a Print only, and separate by a common character, for example a ';' then it would look like this: the Arduin sends: "ABC-1234;GM;CELTA;WHITE" in the c#: string linha =…
-
1
votes2
answers328
viewsA: Filling out a form’s textbox with information from a datagridview
Whereas, you will use the Doubleclick event in datagridview, and that will always open a new form, when the event occurs: in your frmQtdaCliente, create two properties public string Mes {get;set;}…
-
1
votes2
answers179
viewsA: Use Progressbar to copy folders and their contents
One option is to use BackgroundWorker. private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e){ ... foreach (FileInfo f in files) { f.CopyTo(destino); progresso++;…
-
1
votes1
answer92
viewsA: Insert to the C#Dynamic Database?
i do not use model, but use System.Reflection.Propertyinfo to list the properties of an object and mount my syntaxes. foreach (System.Reflection.PropertyInfo pr in obj.GetType().GetProperties()) {…
-
0
votes1
answer86
viewsA: Make variable wait function to be generated
where you must wait, you can wear a while... ex: While (String.IsNullOrEmpty(XmlApi)) { System.Threading.Thread.Sleep(500); } Obs. I am considering that the variable will be populated in another…
-
1
votes1
answer115
viewsA: Problem in Dialogresult having to press the button 3 times to open
In the first clickVoce this setting the dialogresult of the button, in the second click, the button returns the value. Use this.dialogresult = .... To set direct on the return form
-
1
votes3
answers167
viewsA: Inherited Form comes with no editing option on the whole. Use C# and VS 2017
In the form father, go in control you want it to be changed, on the property modifiers, place public.
-
2
votes1
answer193
viewsA: Arduino + C# + RFID?
If it is an Arduin with two readers, in the Arduin code you send a code identifying which reader was concatenated with the id read, use a char to separate the two values ';' for example, when…
-
4
votes2
answers144
viewsA: Error while compiling program
the first error refers to the version of the framework used, is warning that npgsql requires . net 4.5.1 and you are using 4.5. in your solution, go to properties and change the framework used. the…
-
2
votes2
answers710
viewsA: Webservices with C#, make-up
use polymorphism, or, create a generic class that can be configured according to the client. if there are only 2 or 3 models, would use polymorphism, if there is a need to add more in the future,…