If _Vfp.StartMode <> 0 ThisForm.AutoCenter = .T. Else ThisForm.AutoCenter = .F. ThisForm.Top = 0 ThisForm.Left = 0 EndIf
This goes in form's init. ----- Original Message ----- From: "Jeff Roberts" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 22, 2007 12:13 AM 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.