Results 1 to 7 of 7

Thread: ComboBoxs...

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    North of France
    Posts
    49

    Arrow

    Is there anyone of you who tried to use the Change event of the ComboBox. It doesn't work !!

    I don't know when this event is active ???

    However, I found another event which does the same thing : Click. So for everyone who tried to use the Change event and didn't succed to use it, try the Click event!

    Bye, Talk you soon.



    [Edited by (B2F)Tom on 08-16-2000 at 08:03 AM]
    Hi-Tech Engineer

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    81

    Thumbs down

    It does work, but is used differently with the different "Style"s of a combobox. Try changing the style to "1 - SimpleCombo" and using the change event.

    Toot
    Some cause happiness wherever they go; others, whenever they go.

  3. #3
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    The change event is for use when your combo box is in the style 0 or 1.

    The event then works like a textboxes change event.
    Iain, thats with an i by the way!

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Yes. The Change event is not fired when you click on an item in the list but only when the user types in a value.

  5. #5
    Guest
    If you want an event to fire when you move your mouse over the items, you would have to SubClass the ComboLBox.

  6. #6
    Lively Member
    Join Date
    Jul 2000
    Posts
    104
    If you want code to run when a user selects an item from the list use the combobox click event.

  7. #7

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    North of France
    Posts
    49

    Cool All right !

    Thanks to all of you

    I made a misktake, i thought when you click on another value in the list of the CB, the value was "change" so i wanted to use the change event. However, this kind of thing is done with the Click event.

    Now, i know the change event is set when you "type" a value in a Style 1 CB.

    Thanks to all again. I learn one more thing today about VB !

    Talk you soon...

    Hi-Tech Engineer

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