Results 1 to 5 of 5

Thread: Combobox listindex replacement? [Resolved]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    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.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    do this :
    VB Code:
    1. ComboBox1.SelectedIndex=-1

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    Thanks. Setting it to 0 works too.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by salvelinus
    Thanks. Setting it to 0 works too.
    Sorry , I thought you want to reset the combox box .

  5. #5
    Junior Member
    Join Date
    Oct 2002
    Posts
    31
    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
  •  



Click Here to Expand Forum to Full Width