Results 1 to 4 of 4

Thread: Catch changes in Combo Box

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Posts
    82

    Exclamation

    How do you catch a change in the selection of the Combo Box? I'm not talking about Sub ComboBox1_Change.

    Thank you.


  2. #2
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    what change are you talking about then?
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  3. #3
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    The combo box has two events to trap any change in its Text property.

    If you have set the combo box style to anything other than List, you can use the Change() event to trap any user input into the combo box. This event is useless in case you have set the combo style to dropdown list.

    For any style of the combo box, you can use the Click event to trap a change in the selection of the combo item. For e.g. if a combo displays the first item in its list, and the user clicks the button to drop it down and then selects the fifth item, the Click event will let you know that the user has changed the selection.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  4. #4
    TheSarlacc
    Guest
    r u talking about a text change, because its then

    sub Combo1_keypress

    use this to check if any text changed since last change

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