Look up the selection properties of the textbox, they start with sel... .
On Thu, 1 Mar 2001 22:48:42 -0800, accident guy <[log in to unmask]> wrote:
>Hello listers,
>
>I'm hoping for programming help again. I'm learning visual basic, and can't seem to figure out how to highlight the whole text in a textbox at run time. For example, the user enters numbers in a textbox and then presses a command button to do certain task. i want to be able to highlight the text in this textbox after the task is done, and be ready for next input that way. the user won't have to delete the text manually, and will just type over the text in the textbox. i don't want to use text1.text = "" way of deleting the text because i want the user to be able to see the number he/she entered just before the task.
>Thanks in advance!
>
>Ahror Rahmedov
*-*-*-*-*-*-*-*
Harry Lichtbach
Almaden Unlimited
San Jose, CA. USA
The NOSPIN Group Promotions is now offering
Mandrake Linux or Red Hat Linux CD sets along
with our NOSPIN Power Linux CD... at a great price!!!
http://freepctech.com/goodies/promotions.shtml
|