Re: Activate application running in system tray

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Pooja (Pooja_at_discussions.microsoft.com)
Date: 09/15/04

  • Next message: David Saint: "Re: Set Focus"
    Date: Wed, 15 Sep 2004 01:03:06 -0700
    
    

    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: David Saint: "Re: Set Focus"

    Relevant Pages

    • Re: Activate application running in system tray
      ... >system tray. ... Someone plz help. ... You might want to have a look at the App Activate example at ... HTH, ...
      (microsoft.public.vb.winapi)
    • Re: Internat created in System Tray by IE6
      ... I tried adding English (United States) and unchecked the "Enable ... Simplified Chinese is not shown in the language ... grayed out the unchecked "Enable indicator on the Task Bar" box. ... icon will then disappear from the system tray. ...
      (microsoft.public.windows.inetexplorer.ie6.browser)
    • Re: Startup In Tray Problem
      ... Bob Butler wrote: ... launch area of the task bar. ... The problem is the program does not appear in the system tray after ... Your XP isn't just hiding "inactive" tray icons is it? ...
      (microsoft.public.vb.general.discussion)
    • Re: Startup In Tray Problem
      ... launch area of the task bar. ... The problem is the program does not appear in the system tray after ... Your XP isn't just hiding "inactive" tray icons is it? ... Post the API declares, the code used to create the icon, the return value ...
      (microsoft.public.vb.general.discussion)
    • Re: Startup In Tray Problem
      ... launch area of the task bar. ... The problem is the program does not appear in the system tray after ... Your XP isn't just hiding "inactive" tray icons is it? ... Post the API declares, the code used to create the icon, the return value from the call and the value of Err.LastDllError after the call. ...
      (microsoft.public.vb.general.discussion)