Below is the result of the wizard conversion from VB6.
Looking at the Help doc I can find an example that uses Chaw()
If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
e.Handled = True
End If
But isn't there a more DotNet approach to comparing a character to see if
it's a CR.?
How would you do this?
Thanks
Private Sub ComboBoxFindStr_KeyPress(ByVal ...snip
Dim lKeyAscii As Short = Asc(e.KeyChar)
'make CR work like TAB
If lKeyAscii = 13 Then
System.Windows.Forms.SendKeys.Send("{TAB}")
lKeyAscii = 0
End If
If lKeyAscii = 0 Then
e.Handled = True
End If
End Sub