In my experience, you cannot have one window maximized and the others in "restore" mode, i.e. their original size. The only way round this that I can think of is to have all windows "restored" but size the one you want maximized to fill the screen, so that it will default to this size. May not be exactly what you want but it is the nearest I have been able to get.
Correct, Dor100, but this will maximize ALL open forms, not just the one that the code refers to. If only one form is visible at any one time, you can put maximize and restore commands in each one as necessary (in the form's Open event) and that will probably do what Smarty wants. Have fun! )
I agonized over this same problem for about a week before I came to the realization that AlexMidd's first answer is about the best solution: with all forms in their small ("restore" size, manually set the size of form you want "maximized" to fill the screen.
The only other way to have one form a different size from all other open forms is to set the Pop-up, Modal and BorderSize properties. This wasn't a feasible solution for me, and I doubt it's a good solution for Smarty.
Ok I will tell you what seems to work for me. I like using customized dialog forms hovering over a maximized main screen. The trick is setting the type of form to dialog, and popup. This will prevent the form from reverting to maximized. As a bonus both forms are totally independant of each other. You could be running totally seperate operations on both.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.