So I have 3 split containers, with 2 panels each.
SplitContainer1
is the main container that is docked in the Form ( Parent ).
SplitContainer1.Panel1
contains SplitContainer2
which is docked.
SplitContainer1.Panel2
contains SpliContainer3
which is docked.
So far so good.
SplitContainer1
has a SplitterWidth
of 3.
SplitContainer2
and SplitContainer3
has a SplitterWidth
of 6.
In the Designer, you can see the SplitterWidth
difference between them, but when I build the solution, the SplitterWidth
of SplitContainer2
and SplitContainer3
gets reset back to 4 no matter what I do. I have changed the code in "InitializeComponent" of the form with no effect.
The only way I got this working is in the Load Event
of the form, re-specify the SplitterWidths
which I find completely dumb. Why won't the SplitterWidths
stay at the value I specified in the Designer?
If anyone can shed some light on this, what would be awesome!!
Thanks for your time,
Peter