Focus a control of a Windows Form
Shows how to focus a control in a Windows Form.
<br/>
If you are working with Web forms it is very simple, you just use "WebControl.Focus()" but this does not work for Windows Forms...
// A example event:
private void btnExampleCommand_Click(object sender, EventArgs e)
{
// That's all:
this.ActiveControl = this.SomeControlObject;
// This line focuses a control
}
Url: http://www.jonasjohn.de/snippets/csharp/focus-a-control.htm
Language: C# | User: ShareMySnippets | Created: Oct 16, 2013