I have a C# Windows Forms app.
I have a TabControl on it, and depending on user settings, will dynamically use TabControl.Controls.Add to add a specific set of TabPages to the tabs. The TabPages aren't special, they just have buttons and text.
Doing this dynamically, even for small amount of tabs, is slow as hell. Every "Add" call, or using "AddRange" to add a bunch at once results in a half second or so of waiting.
SuspendLayout has no effect.
Any suggestions?