Saturday, August 21, 2010

C#.NET tab Control help please.?

Hello, I'm developing a text editor which will hopefully use multiple tabs.





currently I've only developed a way of creating a new tab when the user clicks ';New..';





// The tabpage.


TabPage tabPage = new TabPage();


tabControl1.TabPages.Add(tabPage);





what I need now is a way of adding controls to the tab





help please!C#.NET tab Control help please.?
The MSDN web site has excellent examples more many of the tasks you need to do for Windows and Web Form C# programming. Take a look at the referenced link. There is a C# example of adding the form controls to the different tab pages.





Basically, there is a Controls collection for each tab page and you use the Add method to add the controls once they are defined.
  • make up
  • No comments:

    Post a Comment