borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Controlling \'Scrolled\' Location of Clicked Item from Combobox List)Next Topic (mouse wheel detection by background window) New Topic New Poll Post Reply
AndreaVB Forum : API : Keeping Combo Box Dropped Down Even When Programmatically Scrolling
Poster Message
matt_1ca
Level: Scholar

Registered: 27-03-2005
Posts: 42

icon Keeping Combo Box Dropped Down Even When Programmatically Scrolling

Wondering if someone knows how to keep the list portion of a combo box kept shown
while the user types to wit:

1.PgUP
2.PgDn
3.Home
4.End
5.Arrow Up
6.Arrow down keys

Currently I have no problem trying to make it show up by doing CB_SHOWDROPDOWN
and programmatically scrolling through it anyway I like using CB_SETTOPINDEX.

The problem comes when I try to keep it dropped down so that user can see the
entire list while he presses the keyboard to scroll up or down the list portion
of the combobox.

Since I have placed my code in the KeyDown event of my combo box the only way
right now for me to trigger the API calls I mentioned above is if the combo box
receives focus using setFocus.

Everytime I do a mycomboBox.setfocus, the dropped down list disappears and I have
to call CB_SHOWDROPDOWN and Setfocus everytime I do any of the six keyboard presses
I mentioned above.

I am trying to solve it  but I do not know if I am getting any closer or going around
in circles. Or if the solutions I imagine right now will end up in a stalemate
at the end.

All suggestions welcome and thank you so much for all the kind help you can give.

Gratefully,
Matt

04-10-2006 at 06:02 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Keeping Combo Box Dropped Down Even When Programmatically Scrolling
Previous Topic (Controlling \'Scrolled\' Location of Clicked Item from Combobox List)Next Topic (mouse wheel detection by background window) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder