Solved

combo box opening upwards

Posted on 2003-11-17
7
878 Views
Last Modified: 2010-05-01
Hi

I need to make a combo box open upwards rather than downwards, like when they are towards the bottom of the screen.

Anyone know how to do this?

Thanks.
0
Comment
Question by:pigface
  • 3
  • 3
7 Comments
 

Expert Comment

by:Hasan_Khan
ID: 9765361
Create a textbox.
Put a command button on its side.
Place an invisible listbox above it.
When user clicks on the command button the listbox should show up.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9765996
Just a Q: Why to move outside standards?, it only confuses end users.
0
 

Author Comment

by:pigface
ID: 9769805
Richie

I was a user who asked for this!  It baffles me, but what to do?

Hasan

Thanks for the ideas, but I have had to fudge my form enough by being forced to use flex grid and I am looking for maybe an api call on the combo.  If it cannot be done, then the user will have to stick with "normal" methods!
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:pigface
ID: 9770233
I meant

It was a user.......
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 100 total points
ID: 9773261
Well, i haven't vb installed so i cannot test it but this would be my first approach:
1) subclass combo box to intercept
Const CB_SHOWDROPDOWN = &H14F
message
2) Create a hidden list box attached to combo box trying to emulate the drop section of combo
To do this, see:
http://www.mvps.org/vbnet/code/listapi/listcopy.htm
3) Show/hide that list box that should be stay above combo box .Top porperty, taking care that they would not be overlapped each other.

In other words, cheat the combo and too much work for, IMHO,  a not useful feature.
Cheers
0
 

Author Comment

by:pigface
ID: 9777721
Richie

I will accept your answer, but Im not using the code.  Ive already got a class module with about 1000 lines of code in it to pop up combo's and text boxes on a flex grid and do validation etc and that has been a nightmare to get 100% right in product and uat testing.

The user can stick with good old fashioned drop downs!

Thanks anyway.
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9779474
Ups, Flex grid?,that's has nothing to do with our primal goal!
regarding that class, could you post url here?
Thanks
Cheers
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question