Dear Experts,
I need a text box for entering only for 0 to 9,.,Delete key ,Backspace key and Enter key except this i want nothing to do for this i am coding like as given below
Private Sub TxtAmendment_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TxtAmendment.KeyDown
If (e.KeyCode >= 48 And e.KeyCode <= 57) Or e.KeyCode = 190 Or e.KeyCode = 8 Or e.KeyCode = 46 Then
Else
' I WANT TO RETURN 13 E.KEYCODE BUT UNABLE TO ASSIGN
e.KeyCode=13 'NOW ALLOWED
End If
End Sub
so suggest me how to return 13 or Enter Kay to e.keycode
Best Regards,
Pardeep