开发者

Add a second toolbar to the existing toolbar

开发者 https://www.devze.com 2023-01-04 23:53 出处:网络
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

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.

0

精彩评论

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