|
-
Dec 17th, 2000, 12:48 PM
#1
Thread Starter
Lively Member
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...
-
Dec 18th, 2000, 04:40 PM
#2
Thread Starter
Lively Member
Oh, I get it. Look it up meself, shall I?
-
Dec 18th, 2000, 09:39 PM
#3
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|