Thanks for the great replies! Sietse, you had the same idea I had originally but I couldn't remember how to do it. I thought that I remembered being able to set a property to an IIF statement in vfp 3 or 5 but I have been away for a while. Thanks again to all.
On Nov 22, 2007 8:35 AM, Sietse Wijnker <[EMAIL PROTECTED]> wrote: > Why not open up the property screen for the form, select the AutoCenter > property and click the fx button. Then compose the expression _VFP.StartMode > <> 0 > This will result in the AutoCenter property that's evaluated when starting > the form based on the StartMode. <> 0 = APP/EXE > > Regards, > Sietse Wijnker > > -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Namens Grigore Dolghin > Verzonden: donderdag 22 november 2007 10:53 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: setting a form to autocenter based on a condition > > > 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 _______________________________________________ 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.