C# Programming
12-30-2009, 02:21 PM
Good morning.
I am trying to figure out how to set the focus to a textbox when a user clicks on ctrl + L. I have the following:
private void button1_Click(object sender, EventArgs e)
{
this.tstbAddress.Focus();
}
When I tried this in and of the key methods, it didn't work. I have a webbrowser control on the form. I thought it might have something to do with (lack of) focus.
Any suggestions? Thank you, WHEELS
I am trying to figure out how to set the focus to a textbox when a user clicks on ctrl + L. I have the following:
private void button1_Click(object sender, EventArgs e)
{
this.tstbAddress.Focus();
}
When I tried this in and of the key methods, it didn't work. I have a webbrowser control on the form. I thought it might have something to do with (lack of) focus.
Any suggestions? Thank you, WHEELS