开发者

TabPage as userControl?

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());
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜