Reputation: 20242
I want to create tabpage as userControl.
Is there any way to deal with this??
Upvotes: 1
Views: 5780
Reputation: 292425
Add a TabPage, and add a UserControl to it...
TabControl tabControl1 = new TabControl();
TabPage tp = new TabPage("New Tab");
tabControl1.TabPages.Add(tp);
tp.Controls.Add(new MyUserControl());
Upvotes: 7