简体   繁体   English

.NET SplitContainer使用C#Windows窗体

[英].NET SplitContainer using C# Windows Forms

I've added a SplitContainer with a horizontal bar between the two panes. 我添加了一个SplitContainer,在两个窗格之间有一个水平条。 I can add content, and move the bar up and down to resize the containers, but the bar itself is invisible. 我可以添加内容,并上下移动栏以调整容器的大小,但栏本身是不可见的。 I want the users of my application to see a visible split between these two areas. 我希望我的应用程序的用户看到这两个区域之间的可见分割。 How can I do this? 我怎样才能做到这一点?

将SplitContainer的BorderStyle设置为FixedSingle或Fixed3D。

Depending on the look you desire, you also might try adding objects that distinct borders to the 2 content panels in a manner that would cause the splitter to stand out. 根据您想要的外观,您还可以尝试将以不同边框的对象添加到2个内容面板中,以便使分割器脱颖而出。 This is how Outlook 2003/2007 handles split bars. 这就是Outlook 2003/2007处理拆分栏的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM