P
peter.mcclymont
Hi There,
I am using a PrintPreviewDialog and I would like it to close the print
preview dialog when I press the escape key.
What is the best way to do that?
I tried to make myself a new class that inherited the
PrintPreviewDialog, and then I tried to override the key methods
(OnKeyDown, OnKeyUp, OnKeyPress). That did absolutely nothing.
I also tried intercepting the key events with a delagate but that also
did nothing.
Your help would be appreciated.
I am using a PrintPreviewDialog and I would like it to close the print
preview dialog when I press the escape key.
What is the best way to do that?
I tried to make myself a new class that inherited the
PrintPreviewDialog, and then I tried to override the key methods
(OnKeyDown, OnKeyUp, OnKeyPress). That did absolutely nothing.
I also tried intercepting the key events with a delagate but that also
did nothing.
Your help would be appreciated.