c#实现全屏 By 竣峰 发表于 2022-07-08 文章目录 添加一个按钮button1. 添加点击事件 . 设置Form1的keyUp事件 123456789101112131415private void button1_Click(object sender, EventArgs e){ this.TopMost = true; this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; this.button1.Visible = false;}private void Form1_KeyUp(object sender, KeyEventArgs e){ this.TopMost = false; this.FormBorderStyle = FormBorderStyle.Fixed3D; this.WindowState = FormWindowState.Normal; this.button1.Visible = true;}