窗体的KeyPreview设置为True
determines whether keyboard events for controls on the form are registered with the form.
确定窗体上的控件键盘事件是否已向窗体注册
窗体的KeyPreview设置为True
determines whether keyboard events for controls on the form are registered with the form.
确定窗体上的控件键盘事件是否已向窗体注册