Rajeev
Rajeev

Reputation: 4849

how to hide the dropdown icon of combobox

I have an application using ComboBox with ComboBox.DropDownStyle = DropDown, I want to hide the dropdown button of it, and dropdownitems will be displayed programmatically, when required.

How could I accomplish that?

Thanks in advance!

Upvotes: 1

Views: 4473

Answers (2)

Evert
Evert

Reputation: 21

Try to use ComboBox.DropDownStyle = Simple

Upvotes: 0

DarinH
DarinH

Reputation: 4889

Renee147's was a good suggestion in that you seldom want to mix metaphors with UI elements.

But, if you REALLY needed to hide the dropdown arrow, I'd just stick a picture box on the form and size/move it to fit just over the arrow portion of the combo. Not technically sophisticated, but it'd work.

Upvotes: 1

Related Questions