Questions tagged as 'c#'

3
answers

How should I deal with errors?

   Read a vector A with 12 elements. The vector must only accept the input of values that are divisible by 2 or 3. The input of values in the vector must be validated by the program and not by the user. The program should display the numbers ins...
asked by 19.03.2017 / 22:43
1
answer

Connection to database in Windows Form? [closed]

How to make / call the database connection in Windows Form? Knowing that the database configuration is in app.config     
asked by 22.03.2017 / 15:02
2
answers

last mysql record

How to know the last record of the ID in the table and play the number in a textblock? using (_connection = new MySqlConnection("Database=test;Data Source=localhost;User Id=root;Password=teste;SslMode=None;")) { System.Tex...
asked by 10.03.2017 / 10:39
0
answers

Make query using Object with the Entity Framework

I have a method that gets a object that can be both int and string , does anyone know a way to entity framework interpret the object!? I know I can make a if and do the check, but I'm trying to do it in a sim...
asked by 15.06.2015 / 04:21
1
answer

Hide Row GridView C # / ASPX [closed]

In a% of users, if the user clicked edit / delete their own account, I would like to know how to hide the row or disable the GridView button but only for the logged in user, or click the button to edit / delete an error in order to preven...
asked by 17.06.2015 / 11:59
0
answers

C # login screen with firebird database with error

I'm doing a project with a firebird database but, at the time of authenticating the user, it is returning true even if there is no user registered in the database with the if (ER.HasRows) line, so it is not falling in else . I'm not...
asked by 15.06.2015 / 13:16
2
answers

How to pass rows from one DataGridView to another?

I want to pass the selected rows from one datagrid to another, for example, I select the rows, I click on a button , and they switch to another. Is to make a add - remove items. I have two datagrids , one will receive Products , and the...
asked by 29.01.2014 / 23:03
3
answers

Reports in C # MVC [closed]

How do I report to c # ? Do I use a third-party component or do I make an HTML page? What do you use on a day-to-day basis? I ask, therefore, I need to print reports that follow a government standard. In delphi I do with my feet in...
asked by 26.03.2014 / 12:06
1
answer

Check data before using as array element

In chat was asked something about data entry validation to avoid catch error out of range allowed. I found the question interesting and pity that was not posted here, I am posting: public static T[] ReplaceRange<T>(this T[]input, T[] r...
asked by 13.07.2018 / 17:29
2
answers

I'm learning, so it's a basic question

I would like to know why, when the program was run, it does not even show Console.WriteLine("nome: {0}", nome); on the screen? string endereço, cpf, telefone, nome; Console.WriteLine("Digite o nome. "); nome = C...
asked by 10.08.2018 / 22:50