我的代码是:
protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData)
{
if (keyData == (Keys.LWin | Keys.M))
{
MessageBox.Show("LWin M");
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
private void Form1_Load(object sender, EventArgs e)
{
this.FormBorderStyle = FormBorderStyle.None;
}
但MessageBox.Show("LWin M");
从来没有工作,谁能帮助我?谢谢
更新
这
MessageBos.Show("LWin M");
只是为了测试,真正的代码是:
this.WindowState = FormWindowState.Minimized;