Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 !

  • Moderators
Posted

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

Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...