Possible Duplicate:
Restore WindowState from Minimized
I have window which is normally hidden in the tray bar.
Then I want to show it if it was hidden, and bring to the front.
If it's already opened, I want to just bring it to front.
And if it's minimized to task bar, then I want to expand it and bring to front.
Now I have this in my show method:
this.Show();
this.Activate();
this.ShowInTaskbar = true;
this.TopMost = true;
this.Focus();
But if it's minimized it will not expand.
How to fix this?