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!




Reply With Quote