Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.

vmz
__________________
vmz
  #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
Default

Looks like
Code:
    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.
  #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
Default

yes, thank you this does work.

vmz


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





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