Profile Picture

NDocManager inside of NTabControl

Posted By Vince McMullin 14 Years Ago
Author
Message
Vince McMullin
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)Junior Member (18 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 18, Visits: 2
Is it possible to place the NDocManager (and panels) inside of a specific NTab page?

Angel Chorbadzhiev
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 139, Visits: 184

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.





Similar Topics


Reading This Topic