Results 1 to 4 of 4

Thread: I feel ignorant...list boxes

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Location
    KC
    Posts
    8

    Unhappy I feel ignorant...list boxes

    I have two dropdown list boxes...
    the collections in both list boxes are identical (text and value)...

    If one were to select an item in ListBox1, what statement would select the same item in ListBox2??

    When i try it, my second list box appears to have the correct entry selected when it really adds a new item. Now I have 2 items in the collection that are identical.

    Maybe it is too easy for me to figure out. Someone knock me upside the head and tell me what the statement is...

    ListBox2.SelectedItem.??? = ListBox1.SelectedItem.???

    Thanks,
    Geno

  2. #2
    Ergo60
    Guest
    If they are both identical then try using the item index? value, I cant remember the exact property name, but it is the one that returns the index value in the collection. This may be better.

  3. #3
    Thelonius
    Guest
    Try this

    ListBox2.SelectedIndex = ListBox1.SelectedIndex


    on the Listbox1 Click Event.

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Location
    KC
    Posts
    8

    Talking Thanks Ionius!!!

    That did it!

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