Thanks Fred. Apparently I'm having a senior moment, because I'm calling 
the Show() method of the new form and it flashes on the top (as the form 
is updated, or created, or just moved to the front) but then the form I 
just clicked (#1 that has the list of the other forms on it) is moved 
back to the top of the display.

Mike

-------- Original Message  --------
Subject: Re: Move one form to top (front) of all displayed forms
From: Fred Taylor <[email protected]>
To: [email protected]
Date: 3/19/2012 3:42 PM

Use the Show method of the form you want to be on top.

Fred


On Mon, Mar 19, 2012 at 1:34 PM, Mike Copeland<[email protected]>  wrote:


> Have struggled with this for years...
> How do you programatically move a form to the "top" of the display in VFP9?
>
> Scenario
> Main form open, set to "As Top-Level Form"
> 4 forms open inside of main form, all set to "In Top-Level Form"
>
> Form #1 is a simple list of the other 3 form captions.
> The other 3 forms are showing different information.
> What I'm trying to do is when you click on one of the form captions in
> Form #1's list, that form should "move" to the front, or top of the
> displayed form stack. (i.e., Zorder) In other words, not be hiding
> behind another form...including the form that contains the list. I would
> prefer, but not insist that the "front most" form have the focus, but I
> can live without that.
>
> The only kludge I've found is to set the form that is wanted as "top of
> display" to "Always on Top" when it is selected from the list on Form
> #1, then when that desired form gets focus, set the "Always on Top" to
> false in the Activate event.
>
> Does VFP 9 (sp2) not provide for a way to control the z-order of the
> displayed forms?
>
> If it's obvious, just hit me in the head with it....this is driving me
> nuts.
>
> Mike Copeland
>
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
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