Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# WinForms:
我有一个始终在我的表单上的静态工具栏。但有时例如当用户从菜单中选择一个命令时,我希望有第二个工具栏被添加到我的静态工具栏的右侧。我怎样才能做到这一点?
谢谢。
您可以在设计器中创建第二个 ToolStrip 并将其Visible属性设置为 false。
Visible
然后,当单击菜单命令时,将第二个工具条设置Visible为true。
true