|
-
Apr 28th, 2003, 08:16 AM
#1
Thread Starter
Member
Selection change on Combo
Help !
Why doesn't the change() method activate when I change the selection in the combo box using the mouse ???
It works if I type into the box, but not when selected from drop-down ?!?!
What am I missing ????????
Rob
-
Apr 28th, 2003, 08:17 AM
#2
PowerPoster
Well
Put you code in the click event....
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Apr 28th, 2003, 08:25 AM
#3
Thread Starter
Member
I simply want the combo box to control some information that gets displayed.
Relevant data will be displayed depending on the selection in the combo box.
If I put a check in on the Click() event, I won't know the selected text, as it won't have been done yet ?
-Rob
-
Apr 28th, 2003, 08:28 AM
#4
Let me in ..
Originally posted by Rob Burgess
I simply want the combo box to control some information that gets displayed.
Relevant data will be displayed depending on the selection in the combo box.
If I put a check in on the Click() event, I won't know the selected text, as it won't have been done yet ?
-Rob
What are you talking about ???
-
Apr 28th, 2003, 08:28 AM
#5
Originally posted by Rob Burgess
I simply want the combo box to control some information that gets displayed.
Relevant data will be displayed depending on the selection in the combo box.
If I put a check in on the Click() event, I won't know the selected text, as it won't have been done yet ?
-Rob
Oddy enough.... that's incorrect.... the click event fires when an item on the combo has been clicked.... you can then use the .Text or the .List(.ListIndex) to get what item was selected by the user.
-
Apr 28th, 2003, 08:33 AM
#6
Thread Starter
Member
....damn...am...I...thick !
Cheers guys.
I'm converting .Net to VB.6 to support Win95. Was convinced that the change() event should have done it (as in .Net) !!
I thought I had tried the click() event already, but obviously NO!
-Dum Rob
-
Apr 28th, 2003, 08:35 AM
#7
Originally posted by Rob Burgess
I simply want the combo box to control some information that gets displayed.
Relevant data will be displayed depending on the selection in the combo box.
If I put a check in on the Click() event, I won't know the selected text, as it won't have been done yet ?
-Rob
What are you referring to when you say "selected text"? A selection in a combo box usually means that you drop down the listbox and click on an item (in this case the Click event is fired). Or do mean selecting text like in the textbox area, e.g highlighting a few of the characters?
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
|