I have a Form with a TabControl on it.
Onto the TabControl TabPages are dynamically added (FYI: It's about configuration settings for different dynamical loaded modules).
Now I would like to have a way to get the Form - and/or the TabControl on the Form - to adjust its size according to the size of the added TabPage.
While writing this I realize that this could be someway more complicated than I thought: Since the different TabPages can be different in size the Form does have to change its size whenever another TabPage is selected or I have to set it to the size of the biggest TabPage once which seems to be the best approach.
Of course I could set the size programmatically by setting width and height to fitting values but first I need to know if there is no automated way to solve my problem and if not what is the best approach to realize this.
I already tried AutoSize=true which didn't solve my problem. ;)
I'm working with Visual Studio 2005 .Net 2.0 and C#.