ellen6a ellen6a - 22 days ago 5
C# Question

Hide arrow button in ComboBox in C#, VS2008

I need to hide the arrow button of a ComboBox.

I want

DropDownStyle
property to be equal
ComboBoxStyle.DropDownList
whithout drop down arrow being visible. Can I do that?

Is there any other control that I may use to display a drop down list of images?

Thanks for your help.

Answer

You can try and fake it. Cover it with a Textbox and in the Textbox's GotFocus() event, simply set comboBox.Focus()