few years ago I was made a project on vb net It was a code to validate if the value was zip code for United States or postal code for Canada. I want to do same thing with c#.
Private Sub txtCodePostal_KeyDown(sender As Object, e As KeyEventArgs) Handle txtCodePostal.KeyDown
IsNumeric(Me.txtPostalCode.Text) Then
Convert vb net code in c#