|  | 
| Keydown/PreviewKeyDown Event | 
| Post Reply   | 
| Author | |
| tslu   Newbie   Joined: 14 September 2006 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  Topic: Keydown/PreviewKeyDown Event Posted: 19 October 2006 at 9:27pm | 
| 
   I notice that Keydown/PreviewKeyDown Event is unable to detect Keycode=13 (Enter). Any suggestion to get around this problem?
    | |
|  | |
| sserge   Moderator Group   Joined: 01 December 2004 Status: Offline Points: 1297 |  Post Options  Thanks(0)  Quote  Reply  Posted: 22 October 2006 at 4:50pm | 
| 
   Just tried to add the following piece of code and press Enter in the regular ReportSample application. Everything works fine and message box shows number 13... 
 -- WBR, Serge | |
|  | |
| tslu   Newbie   Joined: 14 September 2006 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  Posted: 25 October 2006 at 8:45pm | 
| 
   i tried several keys. all seem to work accept 13. I was just thinking, maybe i have not set certain properties to enable that keycode to be detected. Anyway, I deleted the whole form and started with a fresh form and the keycode 13 seem to be ok. Funny. thanks by the way. | |
|  | |
| tslu   Newbie   Joined: 14 September 2006 Status: Offline Points: 8 |  Post Options  Thanks(0)  Quote  Reply  Posted: 03 November 2006 at 4:21am | 
| 
   I noticed why  Keydown/PreviewKeyDown Event is unable to detect Keycode=13 (Enter). I have a button property, default to true. After I set it to false then everythings work fine.
   
    | |
|  | |
| 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 |