I would use the Activate event rather than the Load event. The reason being
is that if you navigate away from the form and the form as a result of some
other action is no longer maximized, it will go back to maximized when you
return to the form. The Load event fires only during the process of opening
the form. The Activate event fires after the Load event, but it also fires
when the form regains focus.
I would use the Activate event rather than the Load event. The reason being
is that if you navigate away from the form and the form as a result of some
other action is no longer maximized, it will go back to maximized when you
return to the form.
I personally doesn't like both methods, because it is - in my eyes -
incompatible with the MDI concept. If I decide to show a form minimized,
switch between forms, come back and get a maximized form... it is a kind
of paternalism.
That's fine. I have no objection to your way of doing it. I just wanted to
add a fine point.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.