|
-
October 15th, 2006, 10:04 AM
#1
Storing WindowState before a minimize
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|