Results 1 to 2 of 2

Thread: telling a Picture box to intercept keystrokes

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    telling a Picture box to intercept keystrokes

    I have a pictuer box on top of a form, is there a way to tell the picture box to intercept keystrokes? sort of like a keypress event?

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    In short, No.

    I'm not quite sure what you're after here. You can't give the picturebox focus so it doesn't really make sense to me to have it intercept key presses.

    The form that the picture box is on has a KeyPreview property that you can set to True. You should use the form's KeyPress and/or KeyDown events to trap keyboard input.
    This world is not my home. I'm just passing through.

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