Avatar of andre72
andre72
 asked on

Problems with TableLayoutPanel under WinXP and Vista

Hi,

in my forms I use TableLayoutPanel to auto fit / size controls.
The mater is, that it works fine when I test and develope with Vista.
WinXP have a completly different behavior when I resize my forms programmatically.

Is there any solution or workaround for?

Thanks

Andre
.NET Programming

Avatar of undefined
Last Comment
andre72

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Busac

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
andre72

ASKER
I'm sorry for delay but I'd been a little bit busy last days and no time to just extract the part with the form and all of the controls.

In the tab control is the TableLayoutPanel and it works fine when the user resize it but the this.Size = new Size() command overlays the form contents to the right with XP.
However I disabled the programmatically resize and doesn't care anymore for XP :-)

Thanks for your support ...
this.tabControl1.SelectedIndex = 0;
this.tabControl1.TabPages[0].Parent.Focus();
this.Size = new Size(356, 210);
this.tabControl1.Size = new Size(340, 145);
this.Show();
this.BringToFront();
this.WindowState = FormWindowState.Normal;
this.Refresh();

Open in new window

andre72

ASKER
No more XP support needed. Thanks
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy