hey there,
i want to know how i can manipulate a textarea so the user can only fill in the numbers 0123456789 and abcdef, so there will be only the possibility to fill in a MAC-adress. Can somebody help me?
thanx
Printable View
hey there,
i want to know how i can manipulate a textarea so the user can only fill in the numbers 0123456789 and abcdef, so there will be only the possibility to fill in a MAC-adress. Can somebody help me?
thanx
Use the keypress event to filter out characters you dont want
entered into your control.
VB Code:
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer) Select Case KeyAscii Case 48 To 57, 8 'NUMBERS ONLY & BS 'OK Case Else Beep KeyAscii = 0 End Select End Sub