C#程序实现窗体的最大化/最小化

时间:2014-11-19 01:43:41   收藏:0   阅读:215

C#代码实现:

private void button1_Click(object sender, EventArgs e)
{
    this.WindowState = FormWindowState.Maximized;
    this.notifyIcon1.Visible = true;
}

private void button2_Click(object sender, EventArgs e)
{
    this.WindowState = FormWindowState.Minimized;
    this.notifyIcon1.Visible = true;
}
private void button3_Click(object sender, MouseEventArgs e)
{
    this.WindowState = FormWindowState.Normal;
    this.Visible = true;
}


原文:http://blog.csdn.net/jiangqin115/article/details/41251215

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!