Autocomplete combobox
Hi,
I am using autocomplete combobox of MTGC.
My problem that when I press keys it fire selected event becouse the text is same as one of items in combobox.
I don't need this event for keys except of Enter and Tab. This event is same as mouse selection event and it couse to my function to do that I don't want.
So:
1) How can I catch mouse click in dropdownlist in combobox?
2) How can I set that when it match the item by key it doesn't fire event of selected?
Thank's
Alexei
1) How can I catch mouse click in dropdownlist in combobox?
2) How can I set that when it match the item by key it doesn't fire event of selected?
1)What do you mean, what are you trying to do?
2)What do you mean? What are you trying todo?
Do you need the autocomplete function or do you want to disable it?
Do you maybe want the combobox to autocomplete only when the user hits enter/tab?
Hi,
I want autocomplete function but I don't want when user click keys (like a,b,...1,2..., and so on) except tab and enter it doesn't fire selected event.
Thank's
Alexei
Hi Alexei!
I hope this topic is still a issue for you: I suffered the same problem, here's my solution. This control was developed for the 1.0 or 1.1 framework-> both version got serious issues with autocomplete so the developer overrwritten some events to impelement his own autocomplete. This code conflicts now with the 2.0 Framwork autocomplete (hehe). To solve this you have to comment out all events/sub related with that
heres a list of them:
Protected Overrides Sub OnKeyPress(ByVal e As System.Windows.Forms.KeyPressEventArgs)
Protected Overrides Sub OnKeyDown(ByVal e As System.Windows.Forms.KeyEventArgs)Protected Overrides Sub OnKeyUp(ByVal e As System.Windows.Forms.KeyEventArgs)
Protected Overrides Sub OnLeave(ByVal e As System.EventArgs)
hope that helps