Combo Box & Mouse


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Combo Box & Mouse

  1. #1
    Jody Kelsch Guest

    Combo Box & Mouse


    Is there any way to stop the highlighted item in a combobox from changing
    when the mouse is moved over the list portion of the combo box? I want it
    only to change only when the user actually clicks the combo box or pressed
    the arrow keys. (Just like the VB16 Combo Box.)

    Thank you,
    Jody Kelsch

    Share on Google+

  2. #2
    Dan Appleman Guest

    Re: Combo Box & Mouse

    Jody:

    I'd probably do it by subclassing the drop down window and throwing away the
    mousemove events.
    Of course, that's also easier said than done. You'll have to get the handle of
    the drop down window using API
    techniques. Then it might be that you'll need to use a hook rather than
    subclassing depending on how the
    control responds to the message. But ultimately it should be possible to do.

    Our SpyWorks package (www.desaware.com) has example code that is similar for
    working with combo boxes.

    Best of luck

    Dan


    Jody Kelsch wrote:

    > Is there any way to stop the highlighted item in a combobox from changing
    > when the mouse is moved over the list portion of the combo box? I want it
    > only to change only when the user actually clicks the combo box or pressed
    > the arrow keys. (Just like the VB16 Combo Box.)
    >
    > Thank you,
    > Jody Kelsch


    Share on Google+

Similar Threads

  1. combo box stays on top of dynamic menu
    By Debora in forum ASP.NET
    Replies: 3
    Last Post: 04-12-2007, 08:10 AM
  2. Searching records using a Combo box
    By Ernie in forum VB Classic
    Replies: 2
    Last Post: 02-04-2003, 02:12 PM
  3. Query help in Access Combo Box
    By Larry Muller in forum VB Classic
    Replies: 1
    Last Post: 02-24-2001, 11:12 PM
  4. Adding horizontal scroll bar to a combo box
    By Kevin McCormack in forum VB Classic
    Replies: 4
    Last Post: 07-20-2000, 04:14 PM
  5. Adding horizontal scroll bar to a combo box
    By Kevin McCormack in forum VB Classic
    Replies: 0
    Last Post: 07-20-2000, 11:03 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center