Topic: Maximize all my forms
Hi everyone,
What I would like to do is to have ALL of my forms open MAXIMIZED. I'm thinking that if this were to happen then my program would fit on whatever screen size the user has. When I use the Maximize button on any of my forms it does exactly that. However I think it would be nice if this were to happen automatically. If my logic is flawed please let me know.
.
Here's what I have tried.
On the SHOW event of my Main form I put this code:
procedure frmMainMenu_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
frmMainMenu.WindowState := wsMaximized;
end;
This only works partially.
.
Next I created a button on my Main form:
procedure frmMainMenu_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
frmMainMenu.WindowState := wsMaximized;
end;
This works better and does seem to affect the other forms. However I'd like to do this without the user having to click on a separate button if possible.
.
Your thoughts will be appreciated.
Thanks
Frank