Keyboard event propagation in winforms

后端 未结 2 1408
北海茫月
北海茫月 2021-01-18 10:20

I have a user control. Within the user control, there is a PictureBox that uses up the entire screen estate (Dock.Fill). I would like to catch keyboard events (e.g., Ctrl-V

2条回答
  •  滥情空心
    2021-01-18 11:05

    You can use MouseUp, MouseEnter, MouseDown or MouseHover ....

    Link about Mouse Down : http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mousedown.aspx

    Link : http://msdn.microsoft.com/en-us/library/system.windows.forms.picturebox.aspx

提交回复
热议问题