Send form windows to the back of -global- Z-order

  • Follow


I know there is a function to send child form windows to the back of
an app's 'local' Z-order. And there's an easy way to send them to the
-front- of the global Z-order.

But is there any way to send them to the back of the global Z-order?
In other words, place the form windows behind all other currently
active windows?
0
Reply Bob 3/16/2010 10:45:04 PM

Bob wrote:
> I know there is a function to send child form windows to the back of
> an app's 'local' Z-order. And there's an easy way to send them to the
> -front- of the global Z-order.
> 
> But is there any way to send them to the back of the global Z-order?
> In other words, place the form windows behind all other currently
> active windows?

Not in .NET, no.  You would have to use the unmanaged API (for example, 
via p/invoke).

Pete
0
Reply Peter 3/17/2010 3:04:16 AM


On Tue, 16 Mar 2010 20:04:16 -0700, Peter Duniho
<no.peted.spam@no.nwlink.spam.com> wrote:

>Bob wrote:
>> I know there is a function to send child form windows to the back of
>> an app's 'local' Z-order. And there's an easy way to send them to the
>> -front- of the global Z-order.
>> 
>> But is there any way to send them to the back of the global Z-order?
>> In other words, place the form windows behind all other currently
>> active windows?
>
>Not in .NET, no.  You would have to use the unmanaged API (for example, 
>via p/invoke).
>
>Pete

Thanks. I found some info on SetWindowPos at pinvoke.net. Odd results
at times but workable.
0
Reply Bob 3/17/2010 7:16:06 PM

2 Replies
543 Views

(page loaded in 1.2 seconds)


Reply: