General information
Category:
Forms & Form designer
Hi Rodd.
I created a class based mostly on the resizer in Marcia's '1001 Things ...' book. I've created a form class that has this resizer class on it (design time). The form's Resize event has the code:
Interesting. I just tested this with the sample form from the book. All I did was to set its WindowState to 2-Maximized and all the controls redsized and re-positioned themselves just fine.
Did you drop the resizer on the form visually? This may be the problem. The resizer must be the last object in the zOrder. In the resizer's Init() it cycles through all controls on the form and tells them to save their original dimensions. Therefore, the resizer must be the last object instantiated.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only