Print Page | Close Window

RC swallows Keycode 27 when in focus

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=7854
Printed Date: 12 November 2024 at 11:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: RC swallows Keycode 27 when in focus
Posted By: joeliner
Subject: RC swallows Keycode 27 when in focus
Date Posted: 22 August 2007 at 10:50am

hi,

I noticed a bug with RC where it swallows the Keycode 27(Esc key) whenever the RC has focus.

To reproduce the bug, do the following using Reportsample.

1. Set Keypreview for frmTreeview = True
2. Place the following code under Form_keyPress Event

Select Case KeyAscii
Case 27: Unload Me
End Select

3. run project and load treeview sample from menu
4. If you press Esc the form does not unload. Press tab to switch focus to ok button then press Esc. The form unloads.

Environ: Vista/VB 6 SP6
hope twil be fixed for next release



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