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.
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();
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 ...
Open in new window