loiter Posted February 22, 2003 Posted February 22, 2003 Hello, I am trying to change the text to upper case as the user types (it is a textbox that holds state abbrev). I read where e.keychar can do this but haven't been able to find examples. Would anyone have any plz? thanks ! Quote
Moderators Robby Posted February 22, 2003 Moderators Posted February 22, 2003 One way is to use the Leave or Validating event.. Private Sub TextBox2_Leave(ByVal sender As Object, ByVal e As EventArgs) Handles TextBox2.Leave TextBox2.Text = TextBox2.Text.ToUpper End Sub Quote Visit...Bassic Software
loiter Posted February 23, 2003 Author Posted February 23, 2003 Thanks .. works like a charm! J Quote
Fanell Posted February 25, 2003 Posted February 25, 2003 Of course, this can also be done by using the .CharacterCasing property of the textbox (if it is the standard tb, that is). <g> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.