OnlineKnowledgeRepository


For Questions and Assistance please use the proper Category.. please..
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Welcome guys!!.. In order for you guys to post your Questions and assistance requests,, please REGISTER first.. Only members can post.. If you have requests then feel free to email ADMIN neuron or SPAMMER onatzky.. thanks!
Search
 
 

Display results as :
 
Rechercher Advanced Search
Donation box
Latest topics
» Convert signed ZD to PD
Handle Keystrokes in VB.NET EmptyThu Sep 01, 2016 7:57 pm by neuron

» Abia State Polytechnic Admission form for 2013/2014 out!
Handle Keystrokes in VB.NET EmptyTue Oct 08, 2013 9:30 am by stevejoo

» Convert ZD to SIGNED PD
Handle Keystrokes in VB.NET EmptySun Sep 08, 2013 9:22 pm by neuron

» How to Speed Up My PC
Handle Keystrokes in VB.NET EmptyTue Feb 26, 2013 9:15 am by alphysudaria143

» Hi I'm alphysudaria143
Handle Keystrokes in VB.NET EmptySun Feb 17, 2013 12:25 am by alphysudaria143

» How to Copy all the Generations of a GDG
Handle Keystrokes in VB.NET EmptyThu Oct 11, 2012 8:30 am by neuron

» Remove Duplicates in a dataset though Sort
Handle Keystrokes in VB.NET EmptyThu Oct 11, 2012 8:23 am by neuron

» how to insert data into your access database vb.net
Handle Keystrokes in VB.NET EmptyTue Aug 14, 2012 9:56 am by neuron

» how to populate combobox in vb.net during form load
Handle Keystrokes in VB.NET EmptyTue Aug 14, 2012 9:53 am by neuron

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Help
Please support me my registering to NEOBUX
advertisements
Handle Keystrokes in VB.NET Banner3
Affiliates
free forum
 



Share
 

 Handle Keystrokes in VB.NET

Go down 
AuthorMessage
neuron
Administrator
Administrator
neuron

Posts : 38
Join date : 2009-08-06

Handle Keystrokes in VB.NET Empty
PostSubject: Handle Keystrokes in VB.NET   Handle Keystrokes in VB.NET EmptyThu Aug 13, 2009 1:24 am

In VB.net it is possible to trap the event made by the user.. here is a simple code to do such thing..

Code:

    Protected Sub txtpassword_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles _
 txtpassword.KeyDown, txtpassword.KeyDown


        If e.KeyCode = Keys.Enter Then
            verifyentered()  // Procedure to be done if enter was pressed
        End If
        If e.KeyCode = Keys.Tab Then
            Button1.Select() // Procedure to be done if tab was pressed

        End If
        e.Handled = True
    End Sub

in order for tab to work as you code it.. you must disable tabstop first in properties..

_________________
credit goes to the original uploader of the codes..

In this forum we will share the knowledge we have to every single individual who shows respect and interest.. If you stay.. you learn.. if not.. then please go.........

--it's me Admin"D"
Back to top Go down
View user profile http://myonlinekr.forumotion.com
 
Handle Keystrokes in VB.NET
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
OnlineKnowledgeRepository :: All About PC :: Programming :: VB.NET-
Jump to: