Ciao, in vb.net è cosi:Originariamente inviato da XWolverineX
Puoi anche usare un vecchio modo del Vb6
codice:Private Sub Text_KeyPress(KeyAscii as Integer) Select Case KeyAscii Case Asc(".") KeyAscii = asc(",") End Select End Sub
codice:Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If e.KeyChar = "." Then e.KeyChar = CType(",", Char) End If End Sub![]()