help with combo box??

  • Thread starter Thread starter perspolis
  • Start date Start date
P

perspolis

hi

I got mixed up with a simple porblem....

I just handled double click in a combo box...but this event dosen't fire..I
don't know why???

this.comboBox1.DoubleClick += new
System.EventHandler(this.comboBox1_DoubleClick);

private void comboBox1_DoubleClick(object sender, System.EventArgs e)

{

MessageBox.Show("Test");

}
 
perspolis,

The Browsable attribute is attached to the DoubleClick event for the
Combobox class. The reason for this is that it probably is not supported
for this control (with good reason, you have three components, the drop down
menu, the button to drop it down, and the text area, so what do you so).

If you really need to handle this, you will have to subclass the class,
overriding the WndProc method, and handling the windows message for the
double click message.

Hope this helps.
 
Back
Top