Print Page | Close Window

KeyPress on ReportControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=9883
Printed Date: 09 July 2025 at 8:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: KeyPress on ReportControl
Posted By: sunbeam
Subject: KeyPress on ReportControl
Date Posted: 13 March 2008 at 10:03am
Hi,
 
I am using Visual Studio 2008 (C#) together with the codejock reportcontrol in my win.forms solution.
 
In my form i have a keypress event. The KeyPreview property in my form has been set to true in order to fire that keypress event as soon as the form detects a key press. This is working fine as long as i do not add the reportcontrol to my form. When i now add the report control, the keypress event is only being handled when i am located in a textbox with my cursor. It looks like the reportcontrol is overriding my keypress event.
 
Is there a workaround to use the keypress event together with the report control in my solution?
 
Kind regards.



Replies:
Posted By: wlcabral
Date Posted: 13 March 2008 at 7:45pm
 
If the report control has the focus and you press a key, the report events keyDown/KeyUp are fired... did you try to use this events to resend the key pressed to form's keypress event ?
 
 


-------------
wlcabral



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net