Home All Groups Group Topic Archive Search About

Problem with version 2.0 and 1.1 of Framework and changing Form height

Author
23 May 2006 4:00 PM
Carol
I have an WinForms application where Form1 is displayed, the user
clicks on a button, and Form2 is displayed.  Based on certain options,
the program may changed the height and width of Form2 before it is
displayed.  Controls on Form2 are on a panel which is dockstyle=fill,
and the controls are anchored to bottom, right.  If I compile and
execute the app on version 1.1 of the Framework, everything is fine.
But if I compile it on version 1.1 of the Framework, and execute it
using version 2.0,  Form2 does not display properly. The form itself
resizes, but it appears like the panel is still docked to the original
size and does not recognize the height and width change on the Form.
This only happens when I resize Form2 to be smaller than the designed
size - if I resize it bigger there is no problem..  I realize I am
compiling with one version of the Framework and executing with another,
but the version should be upwardly compatible.  Has anyone else run
across this problem or know a fix? (I have a small sample program that
demonstrates the problem.)

AddThis Social Bookmark Button