I am building an application using Tab Control. I'ld like to know:
(1) How to transfer the basic codings to the Tab Page.
for example:
- the code behinds - using System... (as each page require different references)
- the page_load coding
Where do I write all these codings to, since I cant double click the tab-page as to put all these codes?
Thanks.
p.s: C# Language.

Santhosh NRank #4,788 · 325 reputationPosted Jan 11, 2010, 10:24 PM EST
paul daniel189 reputationPosted Jan 11, 2010, 11:11 PM EST
Try this code for Adding a tab page manually
private void AddTabControl() { TabControl tabControl1 = new TabControl(); TabPage tabPageUser = new TabPage("User Details"); TabPage tabPageAccount = new TabPage("Account Details"); tabControl1.TabPages.Add(tabPageUser); tabControl1.TabPages.Add(tabPageAccount); tabControl1.Location = new Point(20, 20); this.Controls.Add(tabControl1); }