Hi Holger,
I am afraid, there is not single API to easily resize the main form based on the child controls contained in it (such that all of them are visible). The only way to do this would be as follows :
1. Calculate the difference (say, delta values) in the Width and Height values between the TabControlAdv and the main form
2. Set the size of the TabPageAdv to the size of the UserControl (which is already known at designtime)
3. Now set the size of the main form by adding the appropriate delta values to width and height of the main form.
I have modified the above
sample accordingly and have attached it here. Please try this and let me know if you need further assistance.
Regards,
Guru Patwal
Syncfusion, Inc.