Empyrials

i can NOT find this using search, but i'm prolly using the wrong terms since i'm a newb to visual C#

anyways when i click on a button, i want the curser(selection) to move to my text box.


For instance i'm making a chat program, i have most of it polished up but when i click the Button, i clear the text box and i want the curser to move Back to the text box, not stay on the button.

Any help please


Re: Visual C# General Changing active cusror location

Manju Sandhu

Hi Empyrials,

private void button1_Click(object sender, System.EventArgs e)

{

textBox1.Text ="";

textBox1.Focus();

}

Try this out.





Re: Visual C# General Changing active cusror location

Empyrials

thank you much, i knew it was simple just couldn't find it