Results 1 to 3 of 3

Thread: ComboBox reset [Invalid Property Value]

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Posts
    2

    ComboBox reset [Invalid Property Value]

    Hello,

    I have a form with multiple comboboxes and after I reset the form, I get an "Invalid Property Value" message when I try to click on anything else in the form. I have tried multiple things to track this problem, and it seems to be coming from the reseting of the comboboxes...currently I am using this code to reset it:

    foo_combobox.ListIndex = -1

    Any help would be appreciated

    Thanks!
    -=Biomix

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    ListIndex - 1 is used in conjugction with ListCount.

    If you are setting the ListIndex it should be set to 0
    VB Code:
    1. foo_combobox.ListIndex = 0

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Posts
    2
    Unfortunately, the .ListIndex = 0 will set it to the first value. -1 is necessary.

    I have managed to get the error only when changing pages now...is the attention still on the combobox when changing?

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