innanzitutto grazie a tutti quelli che mi risponderanno,
allora io dovrei creare una textbox dove l'utente possa inserire solo numeri,io ho provato così:
ma così non mi prende il carattere "," e non mi fa usare il tasto backspacePrivate Sub Textbox1_KeyPress(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim KeyAscii As Short = Asc(eventArgs.KeyChar) If KeyAscii < Asc("0") Or KeyAscii > Asc("9") Then KeyAscii = 0 Beep() End If eventArgs.KeyChar = Chr(KeyAscii) If KeyAscii = 0 Then eventArgs.Handled = True End If End Sub
qualcuno sa come posso fare in modo che possa inserire anche la "," e usare il back space
grazie a tutti![]()

Rispondi quotando