I want to create tabpage as userControl.
Is there any way to deal with开发者_开发知识库 this??
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());
精彩评论