PDA

Click to See Complete Forum and Search --> : Text Boxes


XMortal
Nov 21st, 1999, 01:55 PM
I have a piece of code which checks if the last char entered in a textbox is a number or letter and if its a letter it prints the contents of the textbox back into the textbox without the last char.

the only problem is, it then moves the focus to the start of the textbox.

how do I move the focus to the end of the textbox?

any suggestions welcome

Nov 21st, 1999, 06:27 PM
Use the SelStart property.

Text1.SelLength = 0
Text1.SelStart = Len(Text1)



------------------

Vincent van den Braken
EMail: azzmodan@azzmodan.demon.nl
ICQ: 15440110 (http://www.icq.com/15440110)
Homepage: http://www.azzmodan.demon.nl