本文介绍了如何在C#中的toolstripcontainer中添加多个Toolstrip?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在ToolstripContainer
中添加多个Toolstrip
,以便一次只能看到一个Toolstrip
.请帮忙
KB:正确的格式设置并删除了textspeak
I want to add multiple Toolstrip
s in ToolstripContainer
so that at a time only one Toolstrip
is visible. Please help
KB: Corrected formatting and removed textspeak
推荐答案
- 创建
ToolstripContainer
的子类 - 覆盖
TopToolStripPanelVisible
,BottomToolStripPanelVisible
,LeftToolStripPanelVisible
和RightToolStripPanelVisible
设置为true,其他三个可见性设置为false
- Create a Subclass of
ToolstripContainer
- Override
TopToolStripPanelVisible
,BottomToolStripPanelVisible
,LeftToolStripPanelVisible
, andRightToolStripPanelVisible
So that, when the visibility is set to true, the other three visibilities are set to false
这篇关于如何在C#中的toolstripcontainer中添加多个Toolstrip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!