Is it once inside the PROJECT it fails to center, or once run from the DESTROY METHOD? Perhaps you can do an if/then from the calling program, likely a menu option
DO FORM Password TO mGo
IF mGo
DO FORM Myform
ENDIF
Put a RETURN .F. command into the Unload event of the form Password if the password is incorrect--this will pass the False to mGo. This way, you can also reuse the form for security in other forms. Frankly, it seems to me that your autocenter thing should still work if fired from the destroy event, but it's not really solid coding, so perhaps you should try it the above way before troubleshooting your code.
JR
>Hi to all!!
>
>I'm having a strange problem with a form's autocenter property.
>
>It wotks well by itself, but once it's inside the project it fails to appear centered on the screen.
>
>I'm calling this form from the destroy property of a password-check form, how do I make it center?
>
>
>thanx in advance
>Alfred
CLARC Services, Inc.
3500 Tamiami Trail
Port Charlotte, FL 33952
www.clarc.com(941) 743-0108
(800) 246-5488