?
Solved

combo box opening upwards

Posted on 2003-11-17
7
Medium Priority
?
890 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 

Author Comment

by:pigface
ID: 9770233
I meant

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

Accepted Solution

by:
Richie_Simonetti earned 300 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

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!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

764 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