user278618
user278618

Reputation: 20242

TabPage as userControl?

I want to create tabpage as userControl.

Is there any way to deal with this??

Upvotes: 1

Views: 5780

Answers (1)

Thomas Levesque
Thomas Levesque

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

Related Questions