Intercepting Keystrokes

Topics related to the Krypton Docking.

Moderators: Phil Wright, Chris Porter

Intercepting Keystrokes

Postby Zebedee » Sat Jul 23, 2011 12:16 am

I'm working with a picturebox control to manipulate an image, and pictureboxes don't have a KeyPress event. I'm broadly familiar with keystrokes being consumed by the parent window (which does have a KeyPress event), but I can't seem to figure out where a kryptonised form consumes these events! I've tried inserting code in the host form, the krypton workspace, krypton panel - and the keystrokes don't make it to those event processors.

I've got two tracking bars on the form, and whenever a keypress comes in it is responded to by one of these trackbars. Before I try and nail this by using the trackbar events (assuming that's possible), would that be the right place to sort this? I'd kinda like to get at the keypress before it is shipped off to another control on the form, but can't presently see where in the form hierarchy keystrokes come into the application.

Thanks!
Zebedee
 
Posts: 10
Joined: Mon Jun 20, 2011 11:52 pm

Return to Krypton Docking

Who is online

Users browsing this forum: No registered users and 1 guest

cron