Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 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
Old August 13th, 2005, 07:43 AM
Authorized User
Join Date: Mar 2005
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to pritz Send a message via Yahoo to pritz
Default Set cursor at specific location in text box

i am dealing with one problem it is

I wouldlike to set the cursor at specific position i.e

consider a text box i type 100 then i want a automatic "," to appear for that i am copying text to a string and then pasting it RESULt is (100,)
now i typed 0 the result is 0100, ??????????
it should be something like 100,0 .Remember typing should be always start from right to left.
if someone can help me then it would be a gr8 help to me

Old August 15th, 2005, 12:22 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts

This code appends a comma at the end of the text, and leaves the cursor at the end:

    Text1.SelStart = Len(Text1.Text)
    Text1.SelText = ","


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't set text property of dynamic text box sreerajrs ASP.NET 1.0 and 1.1 Professional 1 May 31st, 2006 09:39 PM
Set cursor at specific location in text box pritz VB How-To 3 August 29th, 2005 10:27 AM
Focussing on a specific text box Dilip Nagle General .NET 4 January 6th, 2005 02:16 PM
Text box and cursor in it (netscape) maz JSP Basics 0 September 9th, 2004 12:30 AM

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