C#winform判断用户按下了Ctrl+S键

判断用户按下了Ctrl+S键

www.MyException.Cn  网友分享于:2013-01-30  浏览:166次

如何判断用户按下了Ctrl+S键?
如何判断用户按下了Ctrl+S键?就调用保存按牛事件

------解决方案--------------------
web?windows? 

------解决方案--------------------
private void Form2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { 
switch(keyData) { 
case((System.Windows.Forms.Keys)(262144+83)): 
.................. 



------解决方案--------------------
KeyDown事件中 

if (e.Control && e.KeyCode == Keys.S) 

MessageBox.Show( "Control + S "); 
}

原文地址:https://www.cnblogs.com/grj001/p/12224177.html