Results 1 to 3 of 3

Thread: [2005] How to get a ComboBox to frop on MouseOver event?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2005
    Posts
    252

    Question [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:
    1. ''' <summary>
    2.   ''' TEST code for getting cbo's to drop on a Mouse Enter event.
    3.   ''' </summary>
    4.   ''' <param name="sender"></param>
    5.   ''' <param name="e"></param>
    6.   ''' <remarks>One pubic sub should work for ALL cbo's. Each cbo needs to be
    7.   ''' listed with Handles, say cboXYZ.MouseEnter</remarks>
    8.   Public Sub AutoDropCboList(ByVal sender As System.Object, _
    9.                              ByVal e As System.EventArgs) _
    10.                              Handles cboSingle.MouseEnter
    11.  
    12.     Dim activeCbo As ComboBox = CType(sender, ComboBox)
    13.  
    14.     ' umm, now what??
    15.  
    16.   End Sub

    Thx!
    Last edited by Flying-Kiwi; Jan 18th, 2007 at 01:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width