Hi,

When I minimize my application I hide the form and make a notifyicon visible. When I double click the notifyicon I want the application to return to its original size. I am not sure how to catch what the WindowState was before minimize was clicked.

I am using the code below to handle the double click but I am unsure how to set the WindowState. If I don't set the WindowState the form does not regain focus and just stays in the taskbar and the notifyicon also remains in the system tray.

Code:
    private void notifyIcon1_DoubleClick(object sender, EventArgs e)
    {
      Show();
      WindowState = ?????
    }
Any help appreciated. I am using Visual Studio 2005.

Thanks,
badwolf500