{"id":3970,"date":"2013-11-16T11:49:29","date_gmt":"2013-11-16T03:49:29","guid":{"rendered":"http:\/\/www.vbtutor.net\/?p=3970"},"modified":"2015-05-07T20:08:29","modified_gmt":"2015-05-07T12:08:29","slug":"handling-keyboard-events-in-visual-basic-6","status":"publish","type":"post","link":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/","title":{"rendered":"Handling Keyboard Events in Visual Basic 6"},"content":{"rendered":"<p>In Visual Basic, we can write codes for handling events triggered by input from the keyboard. When the user presses a key on the keyboard, it will trigger an event or a series of events. These events are called the keyboard events. In Visual Basic, the three basic event procedure to handle the keyboard events are KeyPress, Keydown and KeyUp<\/p>\n<p>The keyboard event occurs when the user presses any key that corresponds to a certain alphanumeric value or an action such as Enter, spacing, backspace and more. Each of those value or action is represented by a set of code known as the ASCII . ASCII stands for American Standard Code for Information Interchange.  ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as &#8216;a&#8217; or &#8216;@&#8217; or an action of some sort. ASCII was developed a long time ago and now the non-printing characters are rarely used for their original purpose.In order to write code for the Keyboard events , we need to know the ASCII and the corresponding values<\/p>\n<p><a href=\"http:\/\/www.vbtutor.net\/vb6\/lesson38.html\">Read More Here&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Visual Basic, we can write codes for handling events triggered by input from the keyboard. When the user presses a key on the keyboard, it will trigger an event or a series of events. These events are called the keyboard events. In Visual Basic, the three basic event procedure to handle the keyboard events &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Handling Keyboard Events in Visual Basic 6<\/span><\/a><\/p>\n","protected":false},"author":23013,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3970","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Handling Keyboard Events in Visual Basic 6 - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB<\/title>\n<meta name=\"description\" content=\"This article teaches users how to write codes to handle keyboards events in Visual Basic 6\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Handling Keyboard Events in Visual Basic 6 - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"og:description\" content=\"This article teaches users how to write codes to handle keyboards events in Visual Basic 6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Vbtutor\" \/>\n<meta property=\"article:published_time\" content=\"2013-11-16T03:49:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-05-07T12:08:29+00:00\" \/>\n<meta name=\"author\" content=\"Liew Voon Kiong\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@liewvk\" \/>\n<meta name=\"twitter:site\" content=\"@liewvk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Liew Voon Kiong\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/\"},\"author\":{\"name\":\"Liew Voon Kiong\",\"@id\":\"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d\"},\"headline\":\"Handling Keyboard Events in Visual Basic 6\",\"datePublished\":\"2013-11-16T03:49:29+00:00\",\"dateModified\":\"2015-05-07T12:08:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/\"},\"wordCount\":197,\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/\",\"url\":\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/\",\"name\":\"Handling Keyboard Events in Visual Basic 6 - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/#website\"},\"datePublished\":\"2013-11-16T03:49:29+00:00\",\"dateModified\":\"2015-05-07T12:08:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d\"},\"description\":\"This article teaches users how to write codes to handle keyboards events in Visual Basic 6\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Handling Keyboard Events in Visual Basic 6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vbtutor.net\/#website\",\"url\":\"https:\/\/www.vbtutor.net\/\",\"name\":\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"description\":\"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.\",\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d\",\"name\":\"Liew Voon Kiong\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vbtutor.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/298e9b7c976f23b8bb0deac1079900704b531945d53dab6cda022294a3dda3d4?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/298e9b7c976f23b8bb0deac1079900704b531945d53dab6cda022294a3dda3d4?s=96&d=identicon&r=g\",\"caption\":\"Liew Voon Kiong\"},\"url\":\"https:\/\/www.vbtutor.net\/index.php\/author\/ajt7051vbt\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Handling Keyboard Events in Visual Basic 6 - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"This article teaches users how to write codes to handle keyboards events in Visual Basic 6","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/","og_locale":"en_US","og_type":"article","og_title":"Handling Keyboard Events in Visual Basic 6 - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","og_description":"This article teaches users how to write codes to handle keyboards events in Visual Basic 6","og_url":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/","og_site_name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","article_publisher":"https:\/\/www.facebook.com\/Vbtutor","article_published_time":"2013-11-16T03:49:29+00:00","article_modified_time":"2015-05-07T12:08:29+00:00","author":"Liew Voon Kiong","twitter_card":"summary_large_image","twitter_creator":"@liewvk","twitter_site":"@liewvk","twitter_misc":{"Written by":"Liew Voon Kiong","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/#article","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/"},"author":{"name":"Liew Voon Kiong","@id":"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d"},"headline":"Handling Keyboard Events in Visual Basic 6","datePublished":"2013-11-16T03:49:29+00:00","dateModified":"2015-05-07T12:08:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/"},"wordCount":197,"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/","url":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/","name":"Handling Keyboard Events in Visual Basic 6 - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/#website"},"datePublished":"2013-11-16T03:49:29+00:00","dateModified":"2015-05-07T12:08:29+00:00","author":{"@id":"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d"},"description":"This article teaches users how to write codes to handle keyboards events in Visual Basic 6","breadcrumb":{"@id":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vbtutor.net\/index.php\/2013\/11\/16\/handling-keyboard-events-in-visual-basic-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Handling Keyboard Events in Visual Basic 6"}]},{"@type":"WebSite","@id":"https:\/\/www.vbtutor.net\/#website","url":"https:\/\/www.vbtutor.net\/","name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.","inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d","name":"Liew Voon Kiong","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vbtutor.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/298e9b7c976f23b8bb0deac1079900704b531945d53dab6cda022294a3dda3d4?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/298e9b7c976f23b8bb0deac1079900704b531945d53dab6cda022294a3dda3d4?s=96&d=identicon&r=g","caption":"Liew Voon Kiong"},"url":"https:\/\/www.vbtutor.net\/index.php\/author\/ajt7051vbt\/"}]}},"_links":{"self":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/posts\/3970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/users\/23013"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/comments?post=3970"}],"version-history":[{"count":1,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/posts\/3970\/revisions"}],"predecessor-version":[{"id":3971,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/posts\/3970\/revisions\/3971"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=3970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=3970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=3970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}