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

[510 byte] By [Alexei_shk] at [2007-12-16]
# 1
MTGC?
DavidM.Kean at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
Hi,

The name of combobox with autocomplete that I am using is MTGCombobox.

Thank's
Alexei

Alexei_shk at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3
Does it derive from System.Windows.Forms.ComboBox?
DavidM.Kean at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 4
Hi,

It derive from System.Windows.Forms.ComboBox.

Thank's
Alexei

Alexei_shk at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 5
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?

XGR131 at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 6
Hi,

My problem is when I push keys the combobox autocomplete to first value that starts by this keys and show in drop list the selected value. Also it fire selected event and this is I am not need.

Thank's
Alexei

Alexei_shk at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 7
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?
Andri at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 8
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

Alexei_shk at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 9

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