Results 1 to 7 of 7

Thread: Selection change on Combo

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    nr Manchester, England
    Posts
    34

    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

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Put you code in the click event....
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    nr Manchester, England
    Posts
    34
    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

  4. #4
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    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 ???

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    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.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    Member
    Join Date
    Aug 2001
    Location
    nr Manchester, England
    Posts
    34
    ....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

  7. #7
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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
  •  



Click Here to Expand Forum to Full Width