有没有办法让C#表格完全覆盖整个屏幕?如果没有运行explorer.exe,我会这样做,如果这样做更容易。我不希望它是全屏的,因为我希望其他程序能够在它上面运行。谢谢!
答案 0 :(得分:4)
private void frm_Load(object sender, EventArgs e)
{
ControlBox = false;
FormBorderStyle = FormBorderStyle.None;
WindowState = FormWindowState.Maximized;
}
private void frm_KeyDown(object sender, KeyEventArgs e)
{
// restore form on Escape key press.
if (e.KeyCode == Keys.Escape)
{
ControlBox = true;
FormBorderStyle = FormBorderStyle.Sizable;
WindowState = FormWindowState.Normal;
}
}