How to add keyPress or KeyDown events to TImage?

Posted on 2003-03-29
Medium Priority
Last Modified: 2010-04-04
How to add keyPress or KeyDown events to TImage?
Question by:Khaki

Expert Comment

ID: 8231051
Unless if you wrap it in another class that can receive the focus and have a TabStop property; you will not be able to do that.

See http://delphi.about.com/library/weekly/aa090500a.htm for more details

Accepted Solution

nafeelm earned 200 total points
ID: 8269739

You could trap the KeyPress & KeyDown events at the Form level!

Set the Forms KeyPreview property to True, then you can trap the keys.


Expert Comment

ID: 9316548
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question