Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Keydown/PreviewKeyDown Event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Keydown/PreviewKeyDown Event

 Post Reply Post Reply
Author
Message
tslu View Drop Down
Newbie
Newbie


Joined: 14 September 2006
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote tslu Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
tslu View Drop Down
Newbie
Newbie


Joined: 14 September 2006
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote tslu Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
tslu View Drop Down
Newbie
Newbie


Joined: 14 September 2006
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote tslu Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.