Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to detect keypress OR keydown event in my report?

Status
Not open for further replies.

vcavusoglu

Programmer
Apr 26, 2001
41
TR
There is a crviewer object in my form.
if pressed ESC key, I want to run a code.

But I am not detecting while on crviewer object a keypressed or keydown event

Please help me.

Thank you.

 
Your options appear to be limited. The CRViewer object has no Keypress/Keydown events. Nor does the report object of the Designer module. Once the CRViewer is loaded into a VB form, the VB form does not appear to respond to Keypress/Keydown events at the form level.

Perhaps there's another way to do what you want? Put a command button the VB form that holds the CRViewer object? Brian J. Alves
Terrier Consulting, Inc.
Email: brian.alves@worldnet.att.net
VB / Crystal / SQLServer
 
I haven't had the need to trap keystrokes while the user is viewing the report. What is it that you want to do when the user clicks ESC? Brian J. Alves
Terrier Consulting, Inc.
Email: brian.alves@worldnet.att.net
VB / Crystal / SQLServer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top