Results 1 to 4 of 4

Thread: How to detect User Changing Selection in Combo with auto complete

  1. #1
    Hirsute Mumbler FunkyDexter's Avatar
    Join Date
    Apr 05
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    2,418

    How to detect User Changing Selection in Combo with auto complete

    Hi All

    I'm trying to detect a user changing the selection in a combo box as oppsed to the selection changing as a result of the code. The suggested event for this seems to be SelectionChangeCommitted. The trouble is that doesn't always fire correctly. See this link that gives an example of where it doesn't fire and a suggested solution.

    The problem I'm facing is that this solution doesn't work for me because I've got AutoCompleteMode set to suggest append and AutoCompleteSource set to ListItems. (This is so I can implement some decent auto complete functionality which is working rather well BTW). The problem is that that means the user can start typing, get the list item window (not the drop down), make a selection in it and tab off. In this circumstance DroppedDown isn't true so the event doesn't fire. I guess what I'm looking for is a kind of "ListItemsShowing" property or similar.

    Does anyone have any suggestions?
    When one of my minions says, "Hey, he's just one guy, what can he do?" I say "This"... and shoot them.

    The problem with putting your lair in a volcano is keeping your robot army from melting.

    I know that the human being and the fish can coexist peacefully - George Bush

  2. #2
    Fanatic Member KGComputers's Avatar
    Join Date
    Dec 05
    Location
    www.vbforums.com
    Posts
    550

    Re: How to detect User Changing Selection in Combo with auto complete

    have you tried capturing the selection in combo box select leave event?

    not a good solution but i've tried this...It captures,the text property of the combo box..

  3. #3
    Hirsute Mumbler FunkyDexter's Avatar
    Join Date
    Apr 05
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    2,418

    Re: How to detect User Changing Selection in Combo with auto complete

    I wasn't even aware of that event. I'm hoping to spend some time on this project over the weekend so I'll give that a punt and post back how it turned out.
    When one of my minions says, "Hey, he's just one guy, what can he do?" I say "This"... and shoot them.

    The problem with putting your lair in a volcano is keeping your robot army from melting.

    I know that the human being and the fish can coexist peacefully - George Bush

  4. #4
    Fanatic Member KGComputers's Avatar
    Join Date
    Dec 05
    Location
    www.vbforums.com
    Posts
    550

    Re: How to detect User Changing Selection in Combo with auto complete

    Hope it could help you out...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •