private void MainForm_Load(object sender, EventArgs e) { AddDocumentManager(); for (int i = 0; i < 3; i++) { AddChildForm(); } } void AddDocumentManager() { DocumentManager manager = new DocumentManager(); manager.MdiParent = this; manager.View = new TabbedView(); } int count; void AddChildForm() { Form childForm = new Form(); childForm.Text = "Child Form " + (++count).ToString(); SimpleButton btn = new SimpleButton(); btn.Text = "Button " + count.ToString(); btn.Parent = childForm; childForm.MdiParent = this; childForm.Show(); }
DocumentManager
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)