Hi,
I created a user control and added it to a tab page.
If I add the tab page to the tab control using the resource editor it works.
Now I want to add the page at runtime using the following code:
This code adds the page to the tab control but without the user control. So the page is empty.Code:TabPage myPage = new TabPage ("MyPage") this.myTabControl.TabPages.Add (myPage)
Can you help ?
Thanks.




Reply With Quote