![]()  | 
 
KeyPress on ReportControl | 
 
    Post Reply  
   | 
  
| Author | |
   
   sunbeam  
   
   Newbie  
   Joined: 20 March 2007 Location: Belgium Status: Offline Points: 14  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: KeyPress on ReportControlPosted: 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. 
    | 
 |
![]()  | 
 |
   
   wlcabral  
   
   Groupie  
   Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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
     
   
   | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |