Questions tagged as 'winforms'

2
answers

How to remove the selected option in multiple ComboBoxes?

I have several components of type ComboBox with identical options. The user must select one of them (eg "Name"). How do I make an option in any of the ComboBox , it disappear from all ComboBox ? Do I need a bank? Or a IL...
asked by 13.03.2014 / 21:18
1
answer

How do I make my Main Form know when a secondary form has been closed, without using Parent and Child?

I have my main form (image below), and in it a Split Container . I open a secondary form (what is currently being displayed) in panel2 of SplitContainer , in which the user selects an account to make financial transactions. As s...
asked by 30.01.2014 / 20:26
1
answer

Console in windows forms application

I have a class where you open the console, show some data and then close, when executing a second time (without closing the program), an exception occurs in Console.WriteLine("") If run once, everything works If you close and open t...
asked by 24.11.2016 / 20:31
1
answer

How to make the drawing of control objects faster in a C #

In a form, in C # for desktop, constant movements of certain controls occur. In case I'm using PictureBox type objects, however, its rendering is very time-consuming. Is it recommended to use another control object for this? And how can you make...
asked by 10.09.2014 / 19:04
1
answer

What exactly does the Application.DoEvents () method do?

According to Microsoft help , the Application.DoEvents () :    Process all Windows messages that are currently in the message queue. But what does that mean? Why does he say messages? What line is this?     
asked by 02.10.2017 / 20:08
1
answer

Insert the value of an attribute into a textBox

I need to insert the value of the SALDO attribute of the Conta class into a TextBox . In java redirection via method get and convert with parse.float and hedge as string in field. How do I run C #...
asked by 20.04.2017 / 15:39
1
answer

Create header (rows) of array in DataGridView

Would somehow have C # use this pointed column of the image to add value to it as if it were a "header"? I'm using DataGridView below to show an array. The array header is already being shown in the columns because I can use: gridVie...
asked by 05.04.2017 / 15:16
2
answers

How to know which button was clicked?

I have three buttons, one to insert , another to change and one to write . The record button will work to save data whether it is an insert or a change. How to identify which button I pressed for the Save button to know if I am rec...
asked by 16.08.2016 / 16:28
2
answers

TextBox_Changed is accumulating the value of the sum c #

I am using the textBox_Changed event and when I type a value in the field, another textBox should receive this value, but this other textBox called ValorTotalVenda is accumulating this value. private void textBox4_Te...
asked by 11.01.2017 / 14:36
1
answer

User Control C #

I have the following user control being used in a Form: public partial class CampoTelefone : UserControl { private void maskedTextBoxTelefone_Validating(object sender, CancelEventArgs e) { //validações } } Af...
asked by 01.07.2016 / 19:58