Nevron Forum

NDocManager inside of NTabControl

https://www.nevron.com/Forum/Topic3568.aspx

By Vince McMullin 1 - Saturday, May 22, 2010

Is it possible to place the NDocManager (and panels) inside of a specific NTab page?
By Angel Chorbadzhiev - Tuesday, May 25, 2010

Hi Vince,

Yes, it is possible.

All you need it to put a form into the NTabPage, and set Form property of the NDockManager to this form:

Form f = new Form();

f.TopLevel = false;

f.Dock = DockStyle.Fill;

f.FormBorderStyle = FormBorderStyle.None;

f.Show();

nTabPage1.Controls.Add(f);

NDockManager manager = new NDockManager();

manager.Form = f;

NDockingPanelHost host = new NDockingPanelHost();

manager.RootContainer.RootZone.AddChild(host);

NDockingPanel panel = new NDockingPanel();

host.AddChild(panel);

...

 

Regards,

Angel.