Listening to key events in a picturebox

According to http://msdn2.microsoft.com/en-us/library/z89a4506.aspx there should be key stroke events to listen to from a picturebox. But when i try to use them they are not there in Visual studio

Any suggestions as to why


Answer this question

Listening to key events in a picturebox

  • Kirk Evans

    Your user would want to correct typing mistakes. And see a caret. And use the Home, End and arrow keys. Perhaps use copy and paste.

    Use a TextBox.


  • Divac

    They are there but they are hidden in the IDE. For a good reason: a PictureBox can't get the focus. What are you trying to do


  • Teradar

    I've loaded an image into a picturebox, and i want to overlay text the user enters over the image.

    I can do this by having a text box, but ideally i would like the user just to be able to click image then start to type and the text appears (without the use of a textbox.)

  • Listening to key events in a picturebox