Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

combo box opening upwards

Posted on 2003-11-17
7
Medium Priority
?
895 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
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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

618 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