Re: Activate application running in system tray
From: alpine (alpine_don'tsendspam_at_mvps.org)
Date: 09/15/04
- Next message: alpine: "Re: keyboard event"
- Previous message: Matias Hohl: "Pin to start menu"
- In reply to: Pooja: "Re: Activate application running in system tray"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 15 Sep 2004 08:25:24 -0600
Add a hidden window to your app for the purpose of responding to
second instances being started.
HTH,
Bryan
____________________________________________________________
New Vision Software "When the going gets weird,"
Bryan Stafford "the weird turn pro."
alpine_don'tsendspam@mvps.org Hunter S. Thompson -
Microsoft MVP-Visual Basic Fear and Loathing in LasVegas
On Wed, 15 Sep 2004 01:03:06 -0700, "Pooja"
<Pooja@discussions.microsoft.com> wrote:
>Hi,
>Thanks for the reply but this works fine if the application is minimized
>i.e. if the application is present in the Task Bar and not when the
>application is hidden i.e. in system tray. Can u plz suggest some other
>solution?
>
>Thanks,
>Pooja.
>
>"alpine" wrote:
>
>> On Tue, 14 Sep 2004 03:17:01 -0700, "Pooja"
>> <Pooja@discussions.microsoft.com> wrote:
>>
>> >Hi,
>> >I have an instance of the application already running. Its present in the
>> >system tray. now when i try to open a new instance of application, it should
>> >end the new one and activate the old instance and bring the window on top. I
>> >tried all the functions as in - FindWindow(), ShowWindow(),
>> >SetForegroundWindow(), GetWindow(), OpenIcon(), BringWindowToTop(),
>> >WinSetFocus().
>> >
>> >But the previous instance is just not getting activated. Someone plz help.
>> >
>> >Regards,
>> >Pooja.
>>
>>
>> You might want to have a look at the App Activate example at
>> http://www.mvps.org/vbvision/
>>
>> HTH,
>> Bryan
>> ____________________________________________________________
>> New Vision Software "When the going gets weird,"
>> Bryan Stafford "the weird turn pro."
>> alpine_don'tsendspam@mvps.org Hunter S. Thompson -
>> Microsoft MVP-Visual Basic Fear and Loathing in LasVegas
>>
- Next message: alpine: "Re: keyboard event"
- Previous message: Matias Hohl: "Pin to start menu"
- In reply to: Pooja: "Re: Activate application running in system tray"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|