W
Wapiti
What is the best way to upcase text box input?
I'm currently using the textchanged event as below - but there must be a
better way - especially since I have to do this for each text box on the
form. Could do it in code, on the database - but that could tick a user
off if they think they are entering something in Proper case, and the
backend changes it to all upcase without them knowing it. I'd like them to
'see' all caps getting entered into the system - and the system requiring
it. Is there a better way?
Private Sub txtIssueEmpl_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles txtIssueEmpl.TextChanged
Me.txtIssueEmpl.Text = UCase(Me.txtIssueEmpl.Text)
End Sub
I'm currently using the textchanged event as below - but there must be a
better way - especially since I have to do this for each text box on the
form. Could do it in code, on the database - but that could tick a user
off if they think they are entering something in Proper case, and the
backend changes it to all upcase without them knowing it. I'd like them to
'see' all caps getting entered into the system - and the system requiring
it. Is there a better way?
Private Sub txtIssueEmpl_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles txtIssueEmpl.TextChanged
Me.txtIssueEmpl.Text = UCase(Me.txtIssueEmpl.Text)
End Sub