September 7th, 2004, 03:41 PM
Set the form's WindowState property to wsMaximized and it will start up maximized. To prevent the form from being resized, you can set the style as bsDialog. Unfortunately, you can't set the form's BorderStyle to bsDialog at design time, because then the form is then created as the designed size instead of being maximized. However, you can set the borderstyle property at runtime
and therefore make it maximized as well as non-sizeable. To do this:
1. Set the WindowState property to wsMaximized at design time.
2. Add the following code in the form's OnCreate event:
procedure TForm1.FormCreate(Sender: TObject);
BorderStyle := bsDialog;
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne