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. Web Development
  3. ASP.NET
  4. want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters ?

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

Scheduled Pinned Locked Moved ASP.NET
question
7 Posts 4 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 S V 3 Replies 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
      Abhijit Jana
      wrote on last edited by
      #2

      pramod2517 wrote:

      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

      I am sure that your are not doing it in ASP.NET. :rolleyes:

      cheers, Abhijit CodeProject MVP

      P 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.

        S Offline
        S Offline
        SunithaNallana
        wrote on last edited by
        #3

        Hi Pramod You can try this "set a css style and use text-transform:uppercase in the rule to display uppercase in the web site - regardless of the text entered" .changecase{text-transform:uppercase ;}

        P 1 Reply Last reply
        0
        • A Abhijit Jana

          pramod2517 wrote:

          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

          I am sure that your are not doing it in ASP.NET. :rolleyes:

          cheers, Abhijit CodeProject MVP

          P Offline
          P Offline
          pramod2517
          wrote on last edited by
          #4

          iam writing code in windows application

          A 1 Reply Last reply
          0
          • S SunithaNallana

            Hi Pramod You can try this "set a css style and use text-transform:uppercase in the rule to display uppercase in the web site - regardless of the text entered" .changecase{text-transform:uppercase ;}

            P Offline
            P Offline
            pramod2517
            wrote on last edited by
            #5

            ok its successfully working.But i want windows application

            1 Reply Last reply
            0
            • P pramod2517

              iam writing code in windows application

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              pramod2517 wrote:

              iam writing code in windows application

              Ya.. you code already says that. :zzz: This is ASP.NET Forum, Please post it to C# forum.

              cheers, Abhijit CodeProject MVP

              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.

                V Offline
                V Offline
                vinodkrebc
                wrote on last edited by
                #7

                There is a property of textbox in window application CharacterString=Upper pls try it and then reply Thank You

                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