hi
i got this code in FAQs to prevent combobox from dropping, but i dont know how to use it in my class
here is the code,
1>when i create an object of MyCombo box class in my class the object is not showing the WndProc() function an
2>how should i pass the parameters to the function
public class MyComboBox : ComboBox
{
protected override void WndProc(ref System.Windows.Forms.Message m)
{
if(m.Msg == 0x201 //WM_LBUTTONDOWN
|| m.Msg == 0x203) //WM_LBUTTONDBLCLK
return;
base.WndProc(ref m);
}
----need hel
--seas