Home All Groups Group Topic Archive Search About

single instance tray app

Author
7 Jul 2006 8:35 PM
Ratnesh Raval
hi all,

i've a tray app. that runs in a tray with no forms. when a user clicks on
the trayicon i show main form.
my question is, can i make it like the messenger applications.. so if user
trys to run second instance it will show the form of the already running
instance.
the problem is if there is any form already running i can show it ( i found
some solutions for that)  but what in my case?

thnx

Author
7 Jul 2006 8:51 PM
Jim Wooley
Search on Single Instance Winform applications. This is relatively easy to
do with 2005. A bit more complex in 2003. I have a write-up at http://devauthority.com/blogs/jwooley/archive/2005/07/28/318.aspx.

Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx

Show quoteHide quote
> hi all,
>
> i've a tray app. that runs in a tray with no forms. when a user clicks
> on
> the trayicon i show main form.
> my question is, can i make it like the messenger applications.. so if
> user
> trys to run second instance it will show the form of the already
> running
> instance.
> the problem is if there is any form already running i can show it ( i
> found
> some solutions for that)  but what in my case?
> thnx
>