如何在C#中的toolstripcontainer中添加多个Toolstrip? [英] How to add multiple Toolstrips in toolstripcontainer in c#?

查看:128
本文介绍了如何在C#中的toolstripcontainer中添加多个Toolstrip?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在ToolstripContainer中添加多个Toolstrip,以便一次只能看到一个Toolstrip.请帮忙

KB:正确的格式设置并删除了textspeak

I want to add multiple Toolstrips in ToolstripContainer so that at a time only one Toolstrip is visible. Please help

KB: Corrected formatting and removed textspeak

推荐答案

我认为您的意思是您希望拥有多个工具栏,但是您希望添加和删除它们,因此在工具栏上只能看到一个工具栏.时间.你被困在哪里?
I think you mean you want to have multiple toolstrips, but you want to add and remove them so only one is visible at a time. Where are you stuck ?



  1. 创建 ToolstripContainer 的子类
  2. 覆盖TopToolStripPanelVisibleBottomToolStripPanelVisibleLeftToolStripPanelVisibleRightToolStripPanelVisible设置为true,其他三个可见性设置为false


  1. Create a Subclass of ToolstripContainer
  2. Override TopToolStripPanelVisible, BottomToolStripPanelVisible, LeftToolStripPanelVisible, and RightToolStripPanelVisible So that, when the visibility is set to true, the other three visibilities are set to false


这篇关于如何在C#中的toolstripcontainer中添加多个Toolstrip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆