W
Wayne Wengert
I want to pass the ASCII value of a keystroke to a sub that checks for valid
characters (see sample below). I have looked through the possible choices
for "values" of the e.KeyChar but I can't find what I need? I am trying to
adapt an old VB6 routine so it may well be that I am going at this the wrong
way for .NET"
Any suggestions appreciated.
================= Sample Code ==============
Private Sub txtEqpVoc_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtEqpVoc.KeyPress
DecCheck(txtEqpVoc.Text, e.KeyChar.????)
End Sub
characters (see sample below). I have looked through the possible choices
for "values" of the e.KeyChar but I can't find what I need? I am trying to
adapt an old VB6 routine so it may well be that I am going at this the wrong
way for .NET"
Any suggestions appreciated.
================= Sample Code ==============
Private Sub txtEqpVoc_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txtEqpVoc.KeyPress
DecCheck(txtEqpVoc.Text, e.KeyChar.????)
End Sub