Oppure

Loading
Questo topic e' stato chiuso dal moderatore.
14/02/10 13:02
Teolo
Salve a tutti, avrei bisogno di un piccolo aiuto, chi di voi sa come dire ad una textbox che i caratteri accettati come input sono solo numeri?
aaa
14/02/10 13:26
Alfonso

Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
        If InStr("0123456789", e.KeyChar) = 0 Then
            e.KeyChar = ""
        End If
End Sub
aaa