Sandhurst
Sandhurst

Reputation:

Change default behaviour of Windows Combobox /Dropdown Win Forms C#

I need to make sure that the combobox popsup instead of popping down. as this dropdown is placed at the bottom of the form it doesn't looks good when it drops down.

any suggestions?

Upvotes: 0

Views: 1407

Answers (4)

Drew Hoskins
Drew Hoskins

Reputation: 4186

To be frank, looking perfect doesn't matter nearly as much as your users having a consistent experience between your application and every other Windows application on earth.

People are trained to expect the combo box to work in a particular way, and if you change that even subtly it can be a jarring experience.

Upvotes: 0

Tomas Pajonk
Tomas Pajonk

Reputation: 5202

Combobox will drop up if it is about to go over the screen's edge (so not your form's). I think that is a behaviour expected by many users, please specify why would you want it to go up all the time.

Upvotes: 0

markoo
markoo

Reputation: 738

This is standard behaviour. It depends on how many items are shown in your dropdown. and where the browser window is situated on your screen. E.g. try amazon.com and drag the screen to the bottom and choose something from the search: the items will go up instead of down.

Was there something I missed?

Upvotes: 1

rahul
rahul

Reputation: 187020

This is not possible using the standard dropdownlist control.

Also this is against what the user expects when he clicks on the control. It would be a better idea to change the design.

Upvotes: 1

Related Questions