Thx for the quick reply! This line only defines what happens when the window maximizes, does it? I'd like to change the size when the form is changed to medium size...