Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 28th, 2006, 02:36 PM
Authorized User
Join Date: Oct 2005
Location: nyc, ny, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to set cursor position in a textbox?

I can't figure out how to set the cursor position in a textbox in vb.net. This is trivial in VB6 (SelStart, etc). Is there anyway of doing this? I have searched and searched and have been unable to find a solution. Thanks.

Reply With Quote
  #2 (permalink)  
Old April 21st, 2006, 04:16 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

Looks like
    Me.txt1.SelectionStart = n
to me. This doesn't work for you? It was in the intellisense list of properties for the textbox I looked at.
Reply With Quote
  #3 (permalink)  
Old April 29th, 2006, 07:09 AM
Authorized User
Join Date: Oct 2005
Location: nyc, ny, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

yes, thank you this does work.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting cursor position from grid view yuenli C# 2005 0 August 6th, 2008 03:48 AM
keyboard cursor position rahesh VB.NET 1 May 8th, 2008 01:27 PM
Cursor.Position iremtoksoz C# 3 January 2nd, 2008 11:41 AM
Word-cursor position using mouse is not changing jahid Pro VB 6 2 February 6th, 2007 05:32 AM
aspx cursor position nutrino ASP.NET 1.0 and 1.1 Basics 6 December 29th, 2005 10:51 AM

All times are GMT -4. The time now is 02:46 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.