T
TN
I can add a button to a TabPage, how come I can't add a Form? The Form
never gets realized on the page, but a button can :-(
f = new System.Windows.Forms.Form();
b = new Button();
b.Text = "Hello";
f.Text = "NEW";
f.Size = new Size(100, 100);
f.Controls.Add(b);
f.TopLevel = false;
f.Dock = DockStyle.Fill;
t = new TabPage("Cash Receipts");
f.Parent = t;
t.Controls.Add(f);
tabControl1.TabPages.Add(t);
never gets realized on the page, but a button can :-(
f = new System.Windows.Forms.Form();
b = new Button();
b.Text = "Hello";
f.Text = "NEW";
f.Size = new Size(100, 100);
f.Controls.Add(b);
f.TopLevel = false;
f.Dock = DockStyle.Fill;
t = new TabPage("Cash Receipts");
f.Parent = t;
t.Controls.Add(f);
tabControl1.TabPages.Add(t);