Hi Jeff

Could you check sys(16) to see if it returns the .exe name? You should be
able to set autocenter true/false either in the form load or form init.
Not tried but I can't see why that wouldn't work.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Jeff Roberts
Sent: 21 November 2007 22:13
To: profox@leafe.com
Subject: setting a form to autocenter based on a condition


Hi all,

I've been doing a lot of development on my laptop lately, and screen
space is tighter there.  I've got an app that most all the form's
autocenter property is set to true, and I'd like for that to be false
when I'm running the app or form under the vfp ide.  That way the form
pops up in the middle of the customer's screen when they are running
the exe but when I am working on the form it stays in the upper left,
not underlapping with my command window, debugger, etc.  Is there any
way to set a form's autocenter property before it runs, or is there an
alternative way to center the form?

Thanks,
Jeff


[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to