ARTICLE

Keypress Events in Windows Forms

Posted by Dhavall Vadher Articles | Windows Forms VB.NET July 26, 2010
In this article I am showing you how to use VB.NET KeyPress events to open or close forms.
 
Reader Level:

HTML clipboard

Introduction

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.

Login to add your contents and source code to this article
share this article :
post comment
 

Dear Dhavall,

I didn't find any code please send me if you have any.

thanks.

Posted by jitender malik Sep 22, 2010

Dear Dhaval,

Welcome on the C# Community.

Posted by Dinesh Beniwal Jul 26, 2010
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Nevron Diagram
Become a Sponsor