C # Remove Border SplitContainer?

enter image description hereenter image description here

Hi, How to remove the border that surrounds splitcontainer.panel? As you can see in the picture, the left and right VS are executed. The panel has dock.left programmatically, and the backcolor form is the same as the panel, so I believe this is a border. I tried some code, but it did not work, including, but only worked on tabcontrol:

    protected override void WndProc(ref Message m)
    {
    // Hide the tab headers at run-time
    if (m.Msg == 0x1328 && !DesignMode)
    {
        m.Result = (IntPtr)1;
        return;
    }

    // call the base class implementation
    base.WndProc(ref m);
    }

How can I hide this border? hlp pls: \

+4
source share
1 answer

I will try to answer, although I have win7.

In the image below you have a typical one SplitContainer. It consists of:

  • Return Line Color SplitContainer;
  • Panel 1 backcolor
  • Panel 2 backcolor
  • parent container backcolor

enter image description here

, , . . .

, . -. - . , - Padding ( 0;0;0;0), Margin ( 0;0;0;0), , , , , , , - ( ) - , - .

( , ) : splitcontainer, panel1, panel2 ( , ). . , , .

+1

Source: https://habr.com/ru/post/1523515/


All Articles