如何在Form中使用方向键

📝

内容提要

其实很简单,之前我还用钩子函数来解决,其实根本没必要。重写Form的方法就可以了。 const int WM_SYSKEYDOWN=260; const int WM_KEYDOWN=256; protected override bool ProcessCmdKey(ref Message msg,Keys keyData) { if...

➡️

继续阅读