If you look at the Delphi code, setting the 4 properties individually (Left, Width. etc) uses the SetBounds procedure each time. So it would call the SetBounds procedure 4 times rather than once, which is a waste of time. It re-paints the form 4 times as well if it's visible.
I noticed that SetBounds calls a procedure called UpdateAnchorRules. It is the Anchors which are getting screwed up when I was using the Windows API call SetWindowPlacement. I was pretty sure that calling SetBounds instead would solve it but apparently it hasn't. I think it must be the WindowState for changing to maximized that's causing the problem. It wouldn't surprise me if NT4 and Win2000 have the same problem as Win9x have where WindowState needs to be changed once the form is visible for some reason. Regards, Ross. _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

