I have a generic CR Viewer Windows Forms app written in C# (VS2013) which accepts CR parameters and uses the CR Viewer to display the report. It resizes the viewer to fit the window thus covering all other controls. I've used the viewer's double click event to hide the viewer when done so the user can change the parameters and do another report. I have also set the form's CancelButton (i.e. Escape) close the form.
When the viewer is made visible and full sized, I make the Cancelbutton null so the form doesn't trap the key and placed code behind the viewer's double click and key down events to hide the viewer, but only the double click event is ever fired. The key down event is never fired, even if I click on the viewer 1st and the press Escape.
Can anyone suggest a way I can use the escape key whilst the viewer is visible to hide the viewer thus allowing the use of the original form controls?
Thanks in advance.