Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21906

textbox disallow certain chars

$
0
0
current


Code:

Private Sub txtSend_Change()
If txtSend.Text = "#" Then
txtSend.Text = ""
Else
If txtSend.Text = "|" Then
txtSend.Text = ""
End If
End If
End Sub


as u se those 2 chars what other good ways i can do this has to be affective please i do not wish users to bypass this , att all times this must be checked before anything else gets done

Viewing all articles
Browse latest Browse all 21906

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>