Questions tagged as 'c#'

2
answers

Arduino serial port with C #

I get the information passed through the serial port of my arduino with this code: cnx.Open(); string carro = cnx.ReadLine(); textBox1.Text = carro; cnx.Close(); I would like to know if it would be possible for me to give two ar...
asked by 11.04.2017 / 18:29
2
answers

Datapicker Mysql

How do I get the value that is in the datepicker and do a search in the database? I tried this way but this is not correct var cmd = new MySqlCommand("SELECT distinct id, Pedagio, Carro, Placa, Fabricante, Ano, Cor, Data FROM tcc WHERE Data =...
asked by 06.04.2017 / 14:33
4
answers

How to handle this NullReferenceException

I do not understand the reason for receiving a NullReferenceException , in this beautiful code: pessoaJuridica.InscricaoEstadual = viewmodel.PessoaJuridica.InscricaoEstadual; What am I doing wrong? Follow whole code public async...
asked by 29.06.2017 / 21:53
1
answer

I can not do include

I try to include, but the message appears: InsomeofthesearchesI'vedonesaytoincludeusingSystem.Linq;usingSystem.Data.Entity;butminealreadycontainsthese.Myclassesare:PhotoPartner:usingSystem;usingSystem.Collections.Generic;usingSystem.Componen...
asked by 28.01.2017 / 14:59
2
answers

How to fill in a C #

I need a feature similar to the one below: email ListaEmail = new email(); … while … { email Email = new email(); Email.email1 = adoDR["email"].ToString(); Email.tipo = adoDR["tipo"].ToString();...
asked by 23.01.2017 / 11:34
1
answer

Is there any class in C # (WPF) equivalent to Qt's QSignalMapper?

When I was learning C ++ / Qt I used a very interesting class that allowed me to associate several interface buttons to a single event that, by means of a value by which each button was mapped, allowed me to select the action to perform. Somethi...
asked by 18.01.2017 / 16:55
2
answers

How to make a datagridview C # sort a list (IList) with click on the grid header? [closed]

How to make a DataGridView C # sort a list (IList) with click on the grid header? For example, I have a list with three fields (id, name, city), when the user clicks on the name column, I want to sort by Name, if I click on the city I want...
asked by 02.01.2017 / 20:49
2
answers

Accepting null fields in a Texbox

When I click on "Save", the program does a check of Texbox with a negotiation that I did not to let pass numbers repeat, the problem is that it of error if any Textbox is blank. Here is the code I saved saving the information in an...
asked by 03.01.2017 / 19:08
1
answer

Why do you talk so much about security in targeted programming? [closed]

I program in C and now I decided to break into the world of OOP by C # language. I see that many people talk about security and that's just my doubt, when programming I see that the development environment itself limits my access to private clas...
asked by 20.12.2016 / 15:40
1
answer

Combobox editable with filter

I would like to know if there is a plugin or a tutorial teaching to create a combobox that allows, as you type in it, to filter the items, as in the image below: Note: I'm using ASP.NET MVC with C #.     
asked by 07.12.2016 / 18:24