?
Solved

Registering a Keystroke from Anywhere on a Form

Posted on 2006-11-16
1
Medium Priority
?
199 Views
Last Modified: 2010-04-23
Hi all,

I have a form with a number of textboxes on it. What I would like to happen is when a user presses F3 while anything on the form, including the form itself, has focus. I want it to clear all the textboxes. I can make this happen for each textbox individually but I wondered if there was a way to make this happen globally on the form.

Many Thanks
0
Comment
Question by:kiranboi
1 Comment
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 17956254
Hi kiranboi,

Set the form's KeyPreview property to True and handle the form's KeyDown event.

Cheers!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline
Suggested Courses

839 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