Home All Groups Group Topic Archive Search About

Getting an application to be on top of other applications

Author
6 Nov 2006 4:31 PM
Jerry Spence1
I have an application with an icon that sits in the system tray. When I
double click it the form is maximised, but I want it to sit at the front of
all the other applications that are open. How do I do this? I suspect an API
but maybe in VB2005 there's another way.

-Jerry

Author
6 Nov 2006 4:51 PM
Robinson
MyForm.TopMost = True

Show quoteHide quote
"Jerry Spence1" <jerry.spe***@somewhere.com> wrote in message
news:454f6367$0$8711$ed2619ec@ptn-nntp-reader02.plus.net...
>I have an application with an icon that sits in the system tray. When I
>double click it the form is maximised, but I want it to sit at the front of
>all the other applications that are open. How do I do this? I suspect an
>API but maybe in VB2005 there's another way.
>
> -Jerry
>
Author
6 Nov 2006 5:37 PM
Jerry Spence1
That only gets a form on the top of the other forms within the same
application. I want it to be on top of all the other applications as well -
not hidden behind Word, Excel etc.

-Jerry

Show quoteHide quote
"Robinson" <toomuchspamhaspassed@myinboxtoomuchtoooften.com> wrote in
message news:einp71$out$1$8302bc10@news.demon.co.uk...
> MyForm.TopMost = True
>
> "Jerry Spence1" <jerry.spe***@somewhere.com> wrote in message
> news:454f6367$0$8711$ed2619ec@ptn-nntp-reader02.plus.net...
>>I have an application with an icon that sits in the system tray. When I
>>double click it the form is maximised, but I want it to sit at the front
>>of all the other applications that are open. How do I do this? I suspect
>>an API but maybe in VB2005 there's another way.
>>
>> -Jerry
>>
>
>
Author
6 Nov 2006 6:53 PM
Mythran
Show quote Hide quote
"Jerry Spence1" <jerry.spe***@somewhere.com> wrote in message
news:454f72c1$0$8713$ed2619ec@ptn-nntp-reader02.plus.net...
> That only gets a form on the top of the other forms within the same
> application. I want it to be on top of all the other applications as
> well - not hidden behind Word, Excel etc.
>
> -Jerry
>
> "Robinson" <toomuchspamhaspassed@myinboxtoomuchtoooften.com> wrote in
> message news:einp71$out$1$8302bc10@news.demon.co.uk...
>> MyForm.TopMost = True
>>
>> "Jerry Spence1" <jerry.spe***@somewhere.com> wrote in message
>> news:454f6367$0$8711$ed2619ec@ptn-nntp-reader02.plus.net...
>>>I have an application with an icon that sits in the system tray. When I
>>>double click it the form is maximised, but I want it to sit at the front
>>>of all the other applications that are open. How do I do this? I suspect
>>>an API but maybe in VB2005 there's another way.
>>>
>>> -Jerry
>>>
>>
>>
>
>

Last I checked, the TopMost property places the form on top of all other
non-TopMost forms, regardless of application...

HTH,
Mythran
Author
7 Nov 2006 12:00 PM
Jerry Spence1
Hmm - that doesn't seem to be happening. Thanks anyway and I'll check that
I'm doing things right.

-Jerry

Show quoteHide quote
"Mythran" <kip_pot***@hotmail.com> wrote in message
news:uk16JTdAHHA.4740@TK2MSFTNGP03.phx.gbl...
>
>
> "Jerry Spence1" <jerry.spe***@somewhere.com> wrote in message
> news:454f72c1$0$8713$ed2619ec@ptn-nntp-reader02.plus.net...
>> That only gets a form on the top of the other forms within the same
>> application. I want it to be on top of all the other applications as
>> well - not hidden behind Word, Excel etc.
>>
>> -Jerry
>>
>> "Robinson" <toomuchspamhaspassed@myinboxtoomuchtoooften.com> wrote in
>> message news:einp71$out$1$8302bc10@news.demon.co.uk...
>>> MyForm.TopMost = True
>>>
>>> "Jerry Spence1" <jerry.spe***@somewhere.com> wrote in message
>>> news:454f6367$0$8711$ed2619ec@ptn-nntp-reader02.plus.net...
>>>>I have an application with an icon that sits in the system tray. When I
>>>>double click it the form is maximised, but I want it to sit at the front
>>>>of all the other applications that are open. How do I do this? I suspect
>>>>an API but maybe in VB2005 there's another way.
>>>>
>>>> -Jerry
>>>>
>>>
>>>
>>
>>
>
> Last I checked, the TopMost property places the form on top of all other
> non-TopMost forms, regardless of application...
>
> HTH,
> Mythran
>
>