Hi,
I'm having trouble devleoping a system tray application that is also single instance. My program should always start in the system tray as most of the users don't want it in their face on startup (using the example supplied at http://windowsforms.net/articles/notifyiconapplications.aspx this is easy to do). I have created my own protocol which I register in the Win32 registry (verify://XXX); which is embedded into certain web pages; the clicking of such a link in the browser will launch the application and use the details of the link.The problem is when I try to set the application up as a single instance application; due to the fact that I need to create my own AppContext to handle the form not showing on load and calling it via the main method I can not make use of the application framework prrovided by VB. After using Reflector to inspect how the WindowsFormApplicationBase was created, I have tried to replicate it but seem to get an exception (even if I just to a straight copy of the code) where the second instance can not get in contact with the first instance (I have checked the the remoting addresses are the same).
Any ideas on where I should go from here would be very much appreciated

Single Instance System Tray App
lleoneye
Fille
Dwight Kulkarni
Hi,
You might also want to take a look at the Singleton design pattern.
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnpatterns/html/DesSingleton.asp
cheers,
Paul June A. Domag
Trini_Pierre