Thanks Nicholas
I have come from another programming language where each tab was a form
and thought this would be harder than you just indicated.
Ok now how can I stop the pages from being added to the form on
initialization.
At the moment when a form open it creates all the tabs which takes time.
Is there a property I can set to prevent the pages being created and
then use this method to add the ones I want.
Nicholas Paldino [.NET/C# MVP] wrote:
Jeff,
Why not just use the Add method on the TabPageCollection returned by the
TabPages property on the TabPage control?
// The tabpage.
TabPage tabPage = new TabPage();
// Add to the tab control.
tabControl.TabPages.Add(tabPage);