winform窗体最大化、最小化、还原

        //最大化

        private void button_maxsize_Click(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Maximized;
        }
        //最小化
        private void button_minisize_Click(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Minimized;
        }
       //向下还原
        private void button_normal_Click(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Normal;
        }

posted @ 2016-07-26 11:50  寒夜美美  阅读(2731)  评论(0编辑  收藏  举报