Hi there! First of all, this what I'm trying to do:

- I take the main form of my application, there's a command button to minimize/resize the form so there are only a toolbar-style form left.

- After switching to this toolbar mode, the user can switch back to maximized mode by clicking again on the button.

- o.k., this works so far. I've handled lots of the max/min/etc stuff by setting and removing maxbutton properties, so that there are no control box buttons in toolbar-mode.

- Now the Problem is: Application opens maximized, before i first click the toolbar button i can change between maximized size and - well - medium size (like half-sized). The user may not resize the form except by using maxbutton to switch between the two sizes. Now, if i change the form to toolbar and back, the new stored sizes on maxbutton are maximized and the size of the toolbar.

How can I catch the click event on the maxbutton, so I can set the form sizes myself? Or can I change these sizes anywhere?

Thanks for your time & help!

eugen