开发者

vb.net /winform DropDown Containing Buttons

开发者 https://www.devze.com 2023-02-03 12:56 出处:网络
VB.Net / Winform. Is there a com开发者_Go百科ponent that will look like a Button but when pressed will open like DropDown, but the DropDown wil contains a list of Buttons?

VB.Net / Winform. Is there a com开发者_Go百科ponent that will look like a Button but when pressed will open like DropDown, but the DropDown wil contains a list of Buttons? Menu bar won't work for me in this case.


You can use a Toolstrip with a single ToolStripDropDown button, which contains the list of buttons in the DropDownItems. It won't look exactly like a command button, but you can assign an image to each button. Select No Image Scaling to use the original image size. The Toolstrip defaults as docked, but you can change that and position it anywhere on the form.

0

精彩评论

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