C# WinForms:
I have a static toolbar that is always on my form. but sometimes for example when user selects a开发者_如何学C command from a menu, I wish to have a second toolbar that is getting added to the right hand side of my static toolbar. How can I accomplish that?
Thanks.
You can make a second ToolStrip in the designer and set its Visible
property to false.
Then, when the menu command is clicked, set the second toolstrip's Visible
to true
.
精彩评论