Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change one keycode to another?

Status
Not open for further replies.

wrzek

Programmer
Aug 29, 2005
12
PL
Hello,
I need to change KeyCode = 110 (dot in numeric keyboard) to other symbol (for example "a") in whole application (or form).

I tried such code:

Private Sub frmMain_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = 110 Then
e.Handled = True
System.Windows.Forms.SendKeys.Send("a")
End If
End Sub

but it doesn't work well.
Is there any better way to do it?

Thank You in advance for help!
Larry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top