5

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

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.

Hunter Mitchell
  • 7,063
  • 18
  • 69
  • 116

3 Answers3

7

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.

LarsTech
  • 80,625
  • 14
  • 153
  • 225
  • thanks, all i had to do was change the back colors of the panels and set a different color in the splitter background... – Hunter Mitchell Jul 17 '12 at 20:05
  • Also, why when i click on it to move, it does not move in real time...it does not move until you release the left click??? – Hunter Mitchell Jul 17 '12 at 20:09
  • @EliteGamer That's just the way the split container works. You should see a dithered bar moving with the cursor, but other than that, once you mouse up and let go, then the sub panels will resize themselves. – LarsTech Jul 17 '12 at 20:15
1

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

Jaguir
  • 3,620
  • 1
  • 19
  • 26
1

Use backcolor to change the color.

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

Hogan
  • 69,564
  • 10
  • 76
  • 117