|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (6 bit)
Join Date: Aug 2002
Location: Wichita, Kansas
Posts: 36
|
selecting text boxes
this seems like it should be easy, but I don't know how to do it.
I need to be able to select all of the text in a text box when it "gets focus". in other words, if you tab to it, you can type something new in it without highlighting it manually anyone know how? |
|
|
|
|
|
#2 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
WHat language, compiler, etc?
|
|
|
|
|
|
#3 |
|
Professional gadfly
|
If you are talking about text boxes in VB, you can use the SelStart and SelLength properties of the text box to set the location of the state of the selection and its length.
|
|
|
|
|
|
#4 |
|
Member (6 bit)
Join Date: Aug 2002
Location: Wichita, Kansas
Posts: 36
|
hehe, oops, I guess I forgot to tell you it was VB
![]() ok, I had seen those properties, but I would like to knwo how to use them. |
|
|
|
|
|
#5 |
|
Professional gadfly
|
Using the Enter event should work:
PHP Code:
|
|
|
|
|
|
#6 |
|
Member (6 bit)
Join Date: Aug 2002
Location: Wichita, Kansas
Posts: 36
|
ok, simple as I thought
thanks |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|