Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to move Cursor

Status
Not open for further replies.

tkoehn

ISP
May 24, 2001
26
0
0
US
Slowling moveing into the .NET world. I am unable to figure out how to set focus from one text box to another text box.

Any help or sample code would be greatly appreciated.

-tony-
 
Hi,

did you try help at all????

textbox1.focus

puts the focus on textbox1

Bassguy
 
Does that work with VB.NET??

I couldn't get it to work right.

I ended up using the send tabkey command.

tony
 
tkoehn: The Focus method is all you need.

TextBox1.Focus() 'will set the focus to that control

Look for "Focus Method" in the help and it will also give you a list of controls that it does not work for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top