Cornel
Cornel

Reputation: 4709

Cancel ComboBox dropdown closing

I want to cancel this operation if the user selects a specific item because I don't want to force the user to open the dropdown again. Can this be done?

Upvotes: 0

Views: 1966

Answers (3)

aku
aku

Reputation: 123994

You're going to override expected behavior of common control and it's not a good idea. If you want to provide some kind of hierarchical selection use ListBox or TreeView.

Upvotes: 0

Rockcoder
Rockcoder

Reputation: 8479

Maybe you could just use ListBox control? Preventing combobox closing is imho a bad UI design idea...

Upvotes: 1

Serhat Ozgel
Serhat Ozgel

Reputation: 23766

Why are you putting that item into the drop down list if you will not allow the user to select it? Can you modify your design to provide a more useful user interface?

Upvotes: 2

Related Questions