Reputation: 4709
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
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
Reputation: 8479
Maybe you could just use ListBox control? Preventing combobox closing is imho a bad UI design idea...
Upvotes: 1
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