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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move Cursor in Textbox

Status
Not open for further replies.

iowtech

Programmer
Aug 10, 2001
110
GB
I want to be able to move the cursor in a textbox in vb.net.

Basically I want to programatically do what a user does when he hits the left or right arrow key.

I need to do this without using any sort of sendkeys approach, basically, I mustn't fire the keypress/keydown events.

Any thoughts?
 
I haven't used .NET yet, but in vb6 the text box has a SelStart property. Just increment (decrement) the property to move the cursor.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top