|
-
Dec 12th, 2003, 02:46 PM
#1
Thread Starter
Frenzied Member
Combobox listindex replacement? [Resolved]
Ok, another one, sorry.
In VB6, to have the first value in a combobox display w/o being clicked, you set the listindex property to 0. But there is no listindex property in VB.net comboboxes. How would I accomplish this? Thanks again.
Last edited by salvelinus; Dec 12th, 2003 at 03:24 PM.
-
Dec 12th, 2003, 03:05 PM
#2
Sleep mode
do this :
VB Code:
ComboBox1.SelectedIndex=-1
-
Dec 12th, 2003, 03:24 PM
#3
Thread Starter
Frenzied Member
Thanks. Setting it to 0 works too.
-
Dec 12th, 2003, 03:38 PM
#4
Sleep mode
Originally posted by salvelinus
Thanks. Setting it to 0 works too.
Sorry , I thought you want to reset the combox box .
-
Feb 8th, 2004, 11:23 AM
#5
Junior Member
ComboBox1.SelectedIndex=-1 seems to only decrement the selected index value. I DO want to reset my comboboxes so when I tab into one I can use the arrow keys to select the desired item. Any help in getting this to work would be greatly appreciated. Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|