开发者

Is there a way to make the entire combobox clickable in a windows form?

开发者 https://www.devze.com 2023-04-06 11:06 出处:网络
Instead of only the little tiny down arrow? Seems like th开发者_如何转开发ere should be a property I can set or something, but I\'m not seeing one... unless I\'m blind.Are you looking for

Instead of only the little tiny down arrow? Seems like th开发者_如何转开发ere should be a property I can set or something, but I'm not seeing one... unless I'm blind.


Are you looking for

comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;

maybe? That will make the combo box non-editable, i.e. it won't act like a text box with a button but just as a large button that will open the drop-down.


If the combobox DropDownStyle is set to DropDownList, it will be automatic

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号