本文介绍了如何在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

推荐答案



  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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 02:21