CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Location
    Romania
    Posts
    71

    KeyPress in a Image Control

    How can I capture a KeyPress event in a Image control?
    Thanks.


  2. #2
    Join Date
    Jun 2001
    Location
    Israel
    Posts
    228

    Re: KeyPress in a Image Control

    you can use the forms KeyPress event because an Image control can't get a focus. if you have other controls in the form that can get a focus then make in some way that the focus will be on the form at the right time (i.e. when in the forms mousedown/up event). i don't remember how do you do that but it shouldn't be a problem.

    ----------
    The @host is everywhere!
    ----------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured