kiran wrote:
How to captuer the Minimizing button event in the windows from..?
When I click Minimize button I have to do some action..? How can I do
this..?
Add an event handler to the SizeChanged event of your form.
this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);
In the handling method, you can check if the form has been minimized and
perfom any action you like...
private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if (this.WindowState == FormWindowState.Minimized)
{
// do something like this.onWindowMinimized();
}
else
{
// do something else
};
}