title: Restore Application from SysTray rather than launch NEW instance?
body: <p>Does anyone know how to get an already running instance of an application (minimized to systray) to restore rather than have a new instance run?</p>
  
  <p>I have adjusted the project properties to "Make single instance application". This is great at preventing a new application from launching but does not restore the already running instance.</p>
  
  <p>I am using VB.NET in Visual Studio Express 2012 on Windows 7 Pro SP1.</p>
  
  <p>I do not have any code yet for this, however here is the code that I have used to minimize to tray (as found on this great forum) in case it is relevant:</p>
  
  <pre><code>    Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As FormClosingEventArgs) Handles Me.FormClosing
      Me.WindowState = FormWindowState.Minimized
      Me.Visible = False
      e.Cancel = True
      nfi.Visible = True
  End Sub
  
  Private Sub ShowWindowToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShowWindowToolStripMenuItem.Click
      nfi.Visible = False
      Me.WindowState = FormWindowState.Maximized
      Me.Visible = True
  End Sub
  </code></pre>