SplitContainer splitter in C#?

戏子无情 提交于 2019-12-07 06:54:50

问题


i am using a split container. For some reason, the splitter looks like this:

It is very hard to see. It is the faint 2 lines in the middle of the two black lines. How do i fix this issue and add a filling between the two lines? I am using Fixed Single as my border style.


回答1:


Try changing the backcolor, but if using the designer, then also go into Panel1 and Panel2 and change those respective backcolors to the colors you want.

Also, their is a SplitterWidth property that can adjust the overall size of the splitter handle.




回答2:


Verify that the split container's anchors are set properly.




回答3:


Use backcolor to change the color.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.backcolor.aspx



来源:https://stackoverflow.com/questions/11529975/splitcontainer-splitter-in-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!