Results 1 to 3 of 3

Thread: combo box events

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Dublin, IRE
    Posts
    111

    Question

    Okay, I'd consider myself a bit of a VB stud, but I still don't understand the difference between the change and click events of a combo box.

    Is it that if the user selects something from the combo box (ie., "clicks" on the arrow) I get the click event. If they type something directly in, do I get it? Do I get it if I change it programmatically? And all these questions apply to the change event too!

    Also, does the combo box type make any difference to these events? I just wanna get it nailed down...

  2. #2

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Dublin, IRE
    Posts
    111

    Wink

    Oh, I get it. Look it up meself, shall I?

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Thumbs up

    Well, mpgalvin

    ComboBox control have the following 3 style[*] Dropdown Combo[*] Simple Combo[*] Dropdown List

    Style : Dropdown Combo
    When you set the ComboBox to this style, you will have both the "_Change and _Click event being fire
    when window received the action from user.

    _Click
    As the event name, this event will fire when you click on anyone of the ComboBox item.

    _Change
    Whereas,_Change event will fire when the selected ComboBox item text change. (that is user try to
    modified the text.)

    Style 2: Simlple Combo
    When you set the ComboBox to this style, you will have both both the "_Change and _Click event being fire
    when window received the action from user.

    But, the _Click event only fire when you try to change the ComboBox item ListIndex. Whereas, the _Change
    event will be the same as mention in the Dropdown Style.

    Dropdown List
    As this type of ComboBox, user are bot allow to change the ComboBox item text, hence, it only have the
    _Click event being fire.

    Hope this can make the ComboBox event more clear for you.

    Cheers!

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