Jan 18th, 2007, 01:31 AM
#1
Thread Starter
Addicted Member
[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!
Last edited by Flying-Kiwi; Jan 18th, 2007 at 01:36 AM .
Jan 18th, 2007, 01:41 AM
#2
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.
Attached Images
Jan 18th, 2007, 02:16 AM
#3
Thread Starter
Addicted Member
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.
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width