Questions tagged [controlbox]
20 questions
0
votes
1 answer
vb.net Can't set focus to windows form textbox
I've tried every suggestion I could think of or could find online to solve this problem, without success.
I use ShowDialog to display a form. The first time the form is displayed, it works OK - the first textbox has a blinking cursor and is ready…

Terry
- 1
- 1
- 3
0
votes
1 answer
Skip validation with controlbox[X] of winform?
I have a validating event
private void EmployeeIDtextBox_Validating(object sender, CancelEventArgs e)
{
if (EmployeeIDtextBox.Text == "")
{
MessageBox.Show("Please Enter EmployeeID.", "Invalid EmployeeID");
}
}
And able to skip the…

Karlx Swanovski
- 2,869
- 9
- 34
- 67
0
votes
1 answer
Skip validation with Close[X]box of windowsform?
Is it possible to skip validation with Close[X]box of windowsform?
Something like this with a button that skip validation when hit
private void button1_Click(object sender, EventArgs e)
{
AutoValidate = AutoValidate.Disable;
Close();
}

Karlx Swanovski
- 2,869
- 9
- 34
- 67
0
votes
3 answers
How to customize the controlbox of a winform in c#
I want to customize the controlbox of my winform with a different background for it and different button images. How can I do so? Is there any way to make a custom controlbox with usercontrol or something like that and then add it to the winform?

Victor Mukherjee
- 10,487
- 16
- 54
- 97
0
votes
2 answers
WinForms override control box
Does anyone know what it would take to override the look and feel of a WinForms Control Box? I don't want to change the functionality of the buttons, I just want to change the color and the images. Something similar to what Instagrille has done…

tentmaking
- 2,076
- 4
- 30
- 53