Potresti vedere se il campo di testo contiene già un carattere di crlf:
codice:Private Sub Text1_KeyPress(KeyAscii As Integer) If InStr(1, Text1.Text, vbCrLf) > 0 And KeyAscii = 13 Then KeyAscii = 0 End If End Sub
Potresti vedere se il campo di testo contiene già un carattere di crlf:
codice:Private Sub Text1_KeyPress(KeyAscii As Integer) If InStr(1, Text1.Text, vbCrLf) > 0 And KeyAscii = 13 Then KeyAscii = 0 End If End Sub
Scusate i puntini di sospensione...... La verità è che non ho argomenti....