Solved

combo box opening upwards

Posted on 2003-11-17
7
861 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now