Results 1 to 4 of 4

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

  1. #1

    Thread Starter
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,957

    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?
    The best argument against democracy is a five minute conversation with the average voter - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

  2. #2
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    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..
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  3. #3

    Thread Starter
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,957

    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.
    The best argument against democracy is a five minute conversation with the average voter - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

  4. #4
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

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

    Hope it could help you out...
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

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