>Reading Pete's reply I finally understand what you were asking for. Here is a good like to help you out:
http://www.codeproject.com/useritems/SingleInstanceApp.aspThanks, after having looked more at the application, I realized some code had been pasted from an old application and the tray option was not needed. So, now the application works ok by using the regular Windows task bar.