Print Page | Close Window

Keydown/PreviewKeyDown Event

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=5327
Printed Date: 19 September 2024 at 1:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Keydown/PreviewKeyDown Event
Posted By: tslu
Subject: Keydown/PreviewKeyDown Event
Date 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?



Replies:
Posted By: sserge
Date 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...

Private Sub wndReportControl_PreviewKeyDown(KeyCode As Integer, ByVal Shift As Integer, Cancel As Boolean)
    MsgBox KeyCode
End Sub


--
WBR,
Serge


Posted By: tslu
Date 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.


Posted By: tslu
Date 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.



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