Display Windows Form inside Tabpage
Is there a way to display Windows Form inside a tabpage of another Windows Form?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lalit Kumar BarikPosted Jul 20, 2009, 2:45 AM
Can anybody please help me.
Lalit Kumar Barik
tommyPosted Jan 7, 2009, 8:07 PM
Hi again, I found the solution to this on another forum by using this.
Form2 frm = new Form2();frm.TopLevel = false;
frm.Visible = true;
frm.FormBorderStyle = FormBorderStyle.None;
frm.Dock = DockStyle.Fill;
tabControl1.TabPages[0].Controls.Add(frm);
Hope this helps someone else also.
Scott LyslePosted Jan 7, 2009, 6:37 AM