[2005] How to get a ComboBox to frop on MouseOver event?
Hi,
To save the user some clicks, I'd like my ComboBox lists, of which there are several, to drop down on a Mouse Enter event.
I can set up the .MouseEnter event handler Sub, but what code should be used to make it drop down? A simulated click?
This is what I have so far, the shell of an event handler:
VB Code:
''' <summary>
''' TEST code for getting cbo's to drop on a Mouse Enter event.
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
''' <remarks>One pubic sub should work for ALL cbo's. Each cbo needs to be
''' listed with Handles, say cboXYZ.MouseEnter</remarks>
Public Sub AutoDropCboList(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles cboSingle.MouseEnter
Dim activeCbo As ComboBox = CType(sender, ComboBox)
' umm, now what??
End Sub
Thx!
1 Attachment(s)
Re: [2005] How to get a ComboBox to frop on MouseOver event?
I've lost count of the number of times I've posted this advice. If you want to do something to or with a specific class then go to the MSDN library and read the help topics for the class and its member listsing. More times than not the answer will be clear, if not completely obvious.
Re: [2005] How to get a ComboBox to frop on MouseOver event?
Well that was embarassingly, and happily, easy.
Point taken. I thought it was going to require some nasty API stuff. I missed that property.
Many thx.