Solved

combo box opening upwards

Posted on 2003-11-17
7
867 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB 6.0 printer how to align 6 62
bit defender blocks good applications 2 94
fso.FolderExists("\\server\HiddenFolder$") 4 66
Advice in Xamarin 21 79
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

809 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