Questions tagged as 'winforms'

2
answers

Start Windows Forms program in the background

I developed a monitoring application using Windows Forms, but it does not need to have anything visual at the moment, so I'd like it to run when it runs in the background (I'd like the icon to stay where the icons are viruses, etc.). I do not...
asked by 01.08.2017 / 16:17
4
answers

TextBox accept numbers and commas

I need a textBox accept only numbers and commas. To accept numbers I'm doing this: private void textbox11_num(object sender, KeyPressEventArgs e) { if (!char.IsDigit(e.KeyChar)) { e.Handled = true;...
asked by 30.08.2016 / 13:18
2
answers

Accessing components from another Form

I have two Forms in my application. A Form for data from an engine that has the following fields: txtPotencia , txtTensao , and txtCorrente . I would like to access the values entered in these TextBox throu...
asked by 31.01.2017 / 13:54
2
answers

Validating TextBox

I have the following code snippet that limits a TextBox to receive only numbers and commas: private void txtTempoAcel1_KeyPress(object sender, KeyPressEventArgs e) { if (!Char.IsDigit(e.KeyChar) && e.KeyChar != (char)8 &...
asked by 23.01.2017 / 15:05
2
answers

Bold parameter C # [closed]

I have the following string: string frase = string.Format("A data de hoje é: {0}", DateTime.Now.Date); Is there any way to make the parameter bold?     
asked by 30.08.2017 / 14:57
2
answers

How do I leave a RadioButton marked as default?

I have several radioButton's. How do I leave a marked as default? private void radioButton2_CheckedChanged(object sender, EventArgs e) { comboBox4.Visible = false; comboBox5.Visible = false; comboBox6.Visible = false; comboB...
asked by 14.03.2014 / 22:21
3
answers

How to put a value that is saved in the database in a combobox?

I'm using C # Windows Forms with .NET 3.5. Insert all states of the federation within the property items of my combobox . When I seek a record saved my BD, the combobox assumes the value. For example, when I look for a record that conta...
asked by 31.01.2014 / 12:43
1
answer

How to modify a window in Windows Forms? [closed]

How to change the appearance of the Window border, Title bar and button, and status bar in Windows Forms?     
asked by 18.05.2017 / 14:04
4
answers

Variable in message box c #

How to put a variable within the message box? The code comes down I think it's self explanatory. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; us...
asked by 24.08.2017 / 10:08
1
answer

get the values from a Listt generic list

My Winforms C # project has a form with a GridControl(gvDados) component and a Process button with a Click event . The validation happens in the Click event of the process button, through a method responsible for returning true if...
asked by 26.09.2018 / 19:10