Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DockLeft custom size

I am trying to set DocContent DockLeft to custom size but it is not working. Can anyone suggest how to accomplish this?
I was testing this code but it ends up with default width 404 not 700 as I set.

dockPanelMain.SuspendLayout(true);
DockContent myContent = new MenuForm();
myContent.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;
myContent.Show(dockPanelMain);
dockPanelMain.DockWindows[WeifenLuo.WinFormsUI.Docking.DockState.DockLeft].Width = 700;
dockPanelMain.ResumeLayout(true, true);
like image 562
user1586814 Avatar asked Aug 09 '12 09:08

user1586814


1 Answers

DockLeftPortion Size of the left docking window. Value < 1 to specify the size in portion; value > 1 to specify the size in pixels.

like image 118
Vladimir Avatar answered Nov 08 '22 13:11

Vladimir