By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,124 Members | 1,566 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,124 IT Pros & Developers. It's quick & easy.

How to Process the Control C keypress event if it is not going to be handled?

P: n/a
I want to fire an event when a user presses Control+C when NOT in a
situation where that keypress combo would copy something to the clipboard.

My current attempt was to override the ProcessDialogKey method in the
control, since the KeyPress event doesn't let you know about the Control key
presses. In order to not fire my event off when one actually wants to copy
something to the clipboard, I put in a call to base.PreocessDialogKey()
before doing anything in my overwritten method, and checked to see if it
returned false -- but it ALWAYS does. It was my thought that it would return
true if the system had been able to use the Control-C keypress, but I guess
not.

How can I accomplish this?

Thanks,
--Dan Broschart
Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.