Results 1 to 8 of 8

Thread: Convert to the uppercase letters

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2007
    Answers
    2

    Convert to the uppercase letters

    Hi,

    Can any body help me, it's urgent in my project I want textbox, in that whenerver I type something it get converted to the uppercase letters at that time only


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Convert to the uppercase letters

    try to capture the ascii value of the charactrer that u type in top the textbox and then convert it to uppercase using the ascii value again.


  3. #3
    Contributing Member
    Join Date
    Jun 2007
    Answers
    65

    Re: Convert to the uppercase letters

    Hi Honey,

    It's just so simple.

    Create a javascript function ConverToUpper() which will be called onChange() event of textbox (clientside)

    Here is the body of ConverToUpper()
    function ConverToUpper()
    {
    document.getElementByID('TextBox1').value = document.getElementByID('TextBox1').value.toUpperCase();
    }

    Got It.

    --V V--
    Vikas Vaidya


  4. #4
    Junior Member
    Join Date
    Jul 2007
    Answers
    1

    Re: Convert to the uppercase letters

    Quote Originally Posted by honey_sonal View Post
    Hi,

    Can any body help me, it's urgent in my project I want textbox, in that whenerver I type something it get converted to the uppercase letters at that time only
    In Textchanged Event
    Dim s As String
    s = Me.TextBox1.Text
    s = s.ToUpper
    Me.TextBox1.Text = s


  5. #5
    Junior Member
    Join Date
    Aug 2007
    Answers
    1

    Re: Convert to the uppercase letters

    Ucase(string)


  6. #6
    Junior Member
    Join Date
    Dec 2007
    Answers
    18

    Re: Convert to the uppercase letters

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal _
    e As System.EventArgs) Handles MyBase.Load
    ' Set the TextBox's character casing.
    TextBox2.CharacterCasing = CharacterCasing.Upper
    End Sub


  7. #7
    Junior Member
    Join Date
    Dec 2007
    Answers
    12

    Re: Convert to the uppercase letters

    Thanx to MS...no need to write any code for that...
    Set the text box's CharacterCasing property to CharacterCasing.Upper.
    at design time


  8. #8
    Contributing Member
    Join Date
    Oct 2007
    Answers
    88

    Smile Re: Convert to the uppercase letters

    Quote Originally Posted by honey_sonal View Post
    Hi,

    Can any body help me, it's urgent in my project I want textbox, in that whenerver I type something it get converted to the uppercase letters at that time only
    change in the textbox character casing properities to upper case


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact