日期:2014-05-16 浏览次数:21128 次
this.TopMost = true;
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyValue == 27)
{
this.WindowState = FormWindowState.Normal;
}
}
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)27)
{
this.WindowState = FormWindowState.Normal;
}
}