I have seen this, and the way I handled it was by doing something like the following.
if LMaximize then begin pMainPanel.Aligned := alNone; Self.WindowState := wsMaximized; Application.ProcessMessages; // Probably not necessary pMainPanel.Aligned := alClient; end; Stacey > -----Original Message----- > From: vss [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 24 October 2001 10:12 a.m. > To: Multiple recipients of list delphi > Subject: [DUG]: Form Maximizing > > > Hi all. > > Just a weired problem I cant figure out. > I havea form. I am saving its window state to teh registry when it > closes, so that when it reopens the form will me maximized if > that was > its last state. > This is fin, BUT when the form opens it IS maximized, BUT its > like 2-3 > millimeters from the top of the screen. > > Anyone know why this is and how to make it maximize properly ? > > Thanks,Jeremy Coulter > > > -------------------------------------------------------------- > ------------- > New Zealand Delphi Users group - Delphi List - > [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/