Hello,
Could anybody please tell me how can I restore a form to its previous condition when it is minimized
Just setting FormState to Normal won't do it, if the form was previously maximized.
So the real question is how would I detect the user's attempt to minimize the form, so that I can store its condition
Thank you in advance,
Kostas

Minimize/Restore Form
Erbil Yilmaz
You need to check for the Resize event:
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
if (WindowState == FormWindowState.Minimized)
{ // Minimized
}
}
Also have a look at the new .NET 2.0 RestoreBounds property.