Question Capture ProcessCmdKey on MsgBox (or can I print the MessageBox with PrintForm)?

superservo15

Member
Joined
Apr 25, 2006
Messages
11
Location
Canada
Programming Experience
10+
Hi,
My two questions are tied to one another...

First off I started witht he requirement to capture the F6 key command on a form and print the screen. I used the ProcessCmdKey override on my form. Then called PrintForm. Easy breezy.
Then today they were like "Oh we will need to have to print any message boxes too". That threw a big kink in my finished code because

1) I can't find a way (if any) to do the printForm with a messageBox open
2) I can't even capture the key strokes while the message box is open to even try to call the Print Form

So I am wondering if anyone knows how to first capture keystrokes for an F6 and not just shift and enter on a messagebox?

Thanks in advance!
 
Top Bottom