Click to See Complete Forum and Search --> : listboxa


Dingojoe
May 20th, 1999, 08:39 PM
i know this may sound kinda stupid becasue i have asked it before..but cant find the thread. :(

how can i select an item in a text box?

is it like list1.selected 4 (where 4 is the listindex)

?

thanks

?

Ravi Kiran
May 24th, 1999, 03:02 AM
Hi,
pls check your post!. Do you want selection in "Text Box" or "List Box"?!?
>
>how can i select an item in a text box?
>
For Text box, you should use SelStart and SelLength.
Text1.SelStart = 1
Text1.SelLength = len(text1.text)
will select thw whole of the text.

>
>is it like list1.selected 4 (where 4 is the
>listindex)
>
To select a item ofa List box use ListIndex
List1.ListIndex = 4 will select the 4th item

Ravi