ARTICLE
Keypress Events in Windows Forms
In this article I am showing you how to use VB.NET KeyPress events to open or close forms.
HTML clipboardIntroduction
This article shows some very small but very important tricks if you are new to
programming world. This is my first post to this site. Today I am showing you
how to use VB.NET KeyPress events to open or close forms.
Back to Work
Now we are coming to our topic. We have multiple forms, on which we want to use
keypresses to operate these forms, either to open form or to close form. Here is
two forms created named Contacts.vb and FindContacts.vb.
User will open Contacts.vb to find, add, edit or delete contacts. For
convenience we are also providing a form to find contacts. Which will be opened
using Ctrl + F key, and closed using Escape Key.