Questions tagged as 'winforms'

2
answers

Installing a WinForms C # application on the client

Developed an application in WinForms C # in 03 layers with Access.MDB Database: Now the questions so that the Application can be installed on the client and work correctly. The files I send to the client are as follows: 1.1 - Executáve...
asked by 25.11.2014 / 18:17
2
answers

Error "NullReferenceExeption was unhandled" when compiling

Follow the code below: public partial class Form1 : Form { public Form1() { button1.Click += Button1_Click; } private void Button1_Click(object sender, EventArgs e) { decimal n1, n2, result; n1 = C...
asked by 08.12.2015 / 00:48
1
answer

Format numerical field with 2 decimal places in datagridview C #

I need to show a column in the datagridview column of gross weight this format 0.00, but I'm not getting it, this column is not created in any database, I created the direct column in the datagridview, I already went in the numeric formatting of...
asked by 17.07.2018 / 22:09
2
answers

Error System.NullReferenceException when trying to pass Value from one Form to another Winforms C #

I have in my application a Customer Registration Form and a Customer Search Form. To send values from one form to another I use the code below, I already used this same code in several other forms and works perfectly, but in that register is not...
asked by 27.06.2018 / 04:59
2
answers

How can I call a void method of the class to display a msg in a form [closed]

I have a public void listarProduto() method. It needs to have all the input information by the user. My problem is it's time to call this method within a MessageBox() on the form for the message to appear.     
asked by 31.08.2017 / 21:57
1
answer

How to leave new form without depending on the other? [closed]

Here is the code that opens my Form4: Form4 form4 = new Form4(); form4.Show(); // Aqui um código gigantesco que demora aproximadamente 1 minuto para ser executado. form4.Close(); The problem is that while Form4 is open, it is gray and stati...
asked by 12.10.2016 / 19:46
3
answers

Validating and counting days of a date [closed]

Consider an informed date on a form. Build a function that checks whether the date is correct (considering leap year, April 31, etc). You need to pass the date entered on the form as a parameter. If the date is correct, build another function...
asked by 06.09.2017 / 04:54
2
answers

Working with images in C #; [closed]

So, working on a hangman's game, it's almost done. The images need to be displayed via code. And that's my problem. For example: I want the error to be equal to 1, the head appears, and so on. Can you help me?     
asked by 14.06.2017 / 20:28
1
answer

Would it be possible to pass a string from one form to another? [closed]

Imagine a Form that asks you for a color, then it would have a TextBox , and from that TextBox I wanted it to Press the "OK" button for example, this sends the text from this TextBox to another Form , so that i...
asked by 09.12.2015 / 15:22
1
answer

What is the error in the conditional? [closed]

What is the error in the conditional below and how to solve it? private void Botão_Click(object sender, EventArgs e) { if(Pbox.Show();) Pbox.Hide(); else(Pbox.Hide();) Pbox.Show(); } private void Pbox_Click(object send...
asked by 25.05.2017 / 10:30