Friday 7 November 2014

Minimize a form in C#

Hi,
   You can minimize your C# form by clicking on  a cancel button.

Here is the code

     private void btnCancel_Click(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Minimized;
        }


Here  btnCancel : is my cancel button


Thank you.

No comments:

Post a Comment