04-04-14, 09:31 PM
السلام عليكم
ضع هذا الكود في الحدث key press
ضع هذا الكود في الحدث key press
كود :
Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If e.KeyChar = ControlChars.Cr Then
e.Handled = True
End If
End Sub
