您的位置:首页 > 编程语言 > C#

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

2014-11-18 18:55 393 查看
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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: