你的位置:首页 > ASP.net教程

[ASP.net教程]为窗体设置快捷键


1 private void WWnd_KeyDown(object sender, KeyEventArgs e)2 {3  if (e.Control && e.KeyCode == Keys.F8)4   {5     WWnd wnd = new WWnd();6     wnd.ShowDialog();7    }8 }

快捷键是Ctrl+F8

 

 

private void WWnd_KeyDown(object sender, KeyEventArgs e){   if (e.Alt && e.Shift && e.Control && e.KeyCode == Keys.A)   {      WWnd wnd = new WWnd();      wnd.ShowDialog();    }}

快捷键是Ctrl+Shift +Alt +A