Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, How?

want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, How?

Scheduled Pinned Locked Moved Visual Basic
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pramod2517
    wrote on last edited by
    #1

    want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, I tried with Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii >= 65 And KeyAscii <= 122 Then Text1.Text = UCase(Text1.text) End If End Sub but it is printing in reverse , is there any other mothods.

    A 1 Reply Last reply
    0
    • P pramod2517

      want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, I tried with Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii >= 65 And KeyAscii <= 122 Then Text1.Text = UCase(Text1.text) End If End Sub but it is printing in reverse , is there any other mothods.

      A Offline
      A Offline
      Anoop Brijmohun
      wrote on last edited by
      #2

      Hi in the properties section of the text1 control you have an option called CharacterCasing which is set to Normal by Default. Set this to upper so that when the user types in lower or upper it will display in UPPER Case. thanks

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups