protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
//if (keyData == Keys.Left)
//{
// this.button1.PerformClick();
// //this.btnTempTest.PerformClick();
//}
if (keyData == Keys.Space)
{
this.tz.PerformClick();//定义快捷键
}
return base.ProcessCmdKey(ref msg, keyData);
}

posted on 2024-04-20 22:20  Lionever  阅读(2)  评论(0编辑  收藏  举报