0

我正在使用摩托罗拉 MC55/MC65,我发现使用Symbol.Keyboard.KeyPad但是当我从“KeyPad”创建一个实例时,它崩溃了,异常“不支持 KeyState 通知”。

堆栈跟踪如下所示;

   at v.h(IntPtr A_0, UInt32 A_1)
   at Symbol.Keyboard.KeyPad..ctor()
   at TestProj.Form1.btnOK_Click_1(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
   at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
   at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
   at System.Windows.Forms.Application.Run(Form fm)
   at TestProj.Program.Main()

我很困惑,我怎么能抓住橙色按钮或蓝色按钮被按下?

4

0 回答 0