I have a project I am working on and it requires that the keys on the keyboard read different than what is on them. For instance, I would like the letter "I", when press, to return the numeric value of "4".
Can anyone help
I have a project I am working on and it requires that the keys on the keyboard read different than what is on them. For instance, I would like the letter "I", when press, to return the numeric value of "4".
Can anyone help
Reset keyboard keys
ron nash
Deedhun
DQM
I put an answer in your earlier post with the same question.
Hope it helps.
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1017304&SiteID=1
dampbarn
JohnGBunch
nishanttheone
JDCAMP
isunshine
albewar
You can keep the remapping confined to your form by setting its KeyPreview property to True and replacing the key in the KeyDown event handler. For example, this code replaces an "A" with a "B":
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.A Then
e.SuppressKeyPress = True
If e.Shift Then SendKeys.Send("B") Else SendKeys.Send("b")
End If
End Sub