[英]How do I make a button on a form behave like a button on a toolStrip? VS2008
How do I make a button on a form behave like a button on a toolStrip? 如何使表单上的按钮表现得像toolStrip上的按钮?
I want a menu-type list to come down. 我想要一个菜单类型列表。 I tried using a toolStripContainer but it is very hard to manipulate to get it to behave as just one button.
我尝试使用toolStripContainer但很难操作以使其仅仅作为一个按钮。
Is there an easier way than just putting a toolStrip with one button in a toolStripContainer? 有没有比仅仅在toolStripContainer中使用一个按钮放置toolStrip更简单的方法?
Thanks. 谢谢。
Forget the ToolStripContainer, just use a ToolStrip (with 1 button). 忘记ToolStripContainer,只需使用ToolStrip(带1个按钮)。
set 组
toolStrip1.Dock = DockStyle.None;
toolStrip1.AutoSize = true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.