Results 1 to 2 of 2

Thread: [RESOLVED] richtextbox stop special chars

  1. #1

    Thread Starter
    Banned
    Join Date
    Aug 2022
    Posts
    97

    Resolved [RESOLVED] richtextbox stop special chars

    how do i stop special chars only allow numbers and words

  2. #2

    Thread Starter
    Banned
    Join Date
    Aug 2022
    Posts
    97

    Re: richtextbox stop special chars

    Code:
    Private Sub txtNick_Change()
    Dim myString As String
    Dim newString As String
    Dim char As Variant
    myString = txtNick
    newString = myString
    For Each char In Split(SpecialCharacters, ",")
        txtNick = Replace(txtNick, char, "")
    Next
    txtNick.SelStart = Len(txtNick.Text)
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width