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 :confused:
Printable View
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 :confused:
Put you code in the click event....
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 ???Quote:
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.Quote:
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
....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 :D
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?Quote:
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