Quantcast
Viewing all articles
Browse latest Browse all 12583

TabPages.Insert Bug?

Is anyone else out there having problems inserting TabPages?

I thought it might be a problem in my main project, so I created a new WinForms test project, dropped a tabcontrol on the form, and added a line to insert a tab at position 0. Nothing else. My constructor looks like this:



public Form1()
{
   InitializeComponent();
   this.tabControl1.TabPages.Insert(0, "Test");
}

 


But when I run I only get the two tabs the designer adds by default.  I've tried all kinds of other permutations and still nothing.  No errors, but no inserted tab either.

Thoughts?


Viewing all articles
Browse latest Browse all 12583

Trending Articles