You can drop the list portion of a combo box programatically using Windows
SendMessage API. To do so in C#:
// Declare the following in your class
[DllImport("user32.dll")]
public static extern int SendMessage(int hWnd, int msg, int wParam, IntPtr
lParam);
public const int CB_SHOWDROPDOWN = 0x14F;
// In the leave event of combobox, use the following code:
SendMessage(comboBox1.Handle.ToInt32(), CB_SHOWDROPDOWN, 1, IntPtr.Zero);
--
Nand Kishore Gupta
hung tran said:
Hi,
I'd like to drop down a combobox after validating the Leave() event, how
can I do that ?
Thanks