Forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SQL

    Forms

    Hi,

    While a user is entering text in a textbox, how can I convert that to upper
    case as they are keying?

    Thanks.


  • AlexS

    #2
    Re: Forms

    Hi, SQL

    if you are using Forms text box, take a look at CharacterCasing property.

    In WebForms you might use TextChanged event, but it will require postbacks,
    so maybe some script will be better. But I am no script expert.

    HTH
    Alex

    "SQL" <nospam@asdfads f.com> wrote in message
    news:OAHr34dOEH A.3708@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi,
    >
    > While a user is entering text in a textbox, how can I convert that to[/color]
    upper[color=blue]
    > case as they are keying?
    >
    > Thanks.
    >
    >[/color]


    Comment

    • SQL

      #3
      Re: Forms

      Nice...thanks!

      "AlexS" <salexru2000NO@ SPAMsympaticoPL EASE.ca> wrote in message
      news:%23ZcwL9dO EHA.3096@TK2MSF TNGP09.phx.gbl. ..[color=blue]
      > Hi, SQL
      >
      > if you are using Forms text box, take a look at CharacterCasing property.
      >
      > In WebForms you might use TextChanged event, but it will require[/color]
      postbacks,[color=blue]
      > so maybe some script will be better. But I am no script expert.
      >
      > HTH
      > Alex
      >
      > "SQL" <nospam@asdfads f.com> wrote in message
      > news:OAHr34dOEH A.3708@TK2MSFTN GP10.phx.gbl...[color=green]
      > > Hi,
      > >
      > > While a user is entering text in a textbox, how can I convert that to[/color]
      > upper[color=green]
      > > case as they are keying?
      > >
      > > Thanks.
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Forms

        * "SQL" <nospam@asdfads f.com> scripsit:[color=blue]
        > While a user is entering text in a textbox, how can I convert that to upper
        > case as they are keying?[/color]

        Set its 'CharacterCasin g' property to 'CharacterCasin g.Upper'.

        --
        Herfried K. Wagner [MVP]
        <URL:http://dotnet.mvps.org/>

        Comment

        • Sriram K  G

          #5
          RE: Forms

          Hi I,m Srira
          In TesxtBox you have a property called 'CharacterCasin g' >select one that you want from the combobox in property window.(This property is available only with vb.net
          In vb, you have to call the followin
          function key_pressed(key ascii as integer

          and write your won code there

          Comment

          Working...