Multline -textbox

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

    #1

    Multline -textbox

    How can I limit the line for the user to input in the "multiline - textbox
    ?"
    Thanks a lot.

    From Agnes


  • Ken Tucker [MVP]

    #2
    Re: Multline -textbox

    Hi,

    You cannot limit the number of lines in the textbox just the number
    of characters with the maxlength property

    http://msdn.microsoft.com/library/de...engthtopic.asp

    Ken
    ------------------------
    "Agnes" <agnes@dynamict ech.com.hk> wrote in message
    news:OzIPLtqrFH A.3836@TK2MSFTN GP12.phx.gbl...[color=blue]
    > How can I limit the line for the user to input in the "multiline - textbox
    > ?"
    > Thanks a lot.
    >
    > From Agnes
    >[/color]


    Comment

    • Chris Dunaway

      #3
      Re: Multline -textbox

      Couldn't you check the Lines property for the number of lines and
      disable the text box if it exceeds the maximum number of lines?

      I havent tried it, but it might work.

      Comment

      • Agnes

        #4
        Re: Multline -textbox

        Well, In my save button, I had get the number of lines and warn the user if
        exceed the limit.

        "Chris Dunaway" <dunawayc@gmail .com>
        ???????:1125581 131.000779.3125 70@z14g2000cwz. googlegroups.co m...[color=blue]
        > Couldn't you check the Lines property for the number of lines and
        > disable the text box if it exceeds the maximum number of lines?
        >
        > I havent tried it, but it might work.
        >[/color]


        Comment

        • Mona

          #5
          Re: Multline -textbox

          Hi Agnes,



          Regarding this issue of limiting the line to input in the multiline -
          textbox, I would like to tell you that you cannot limit the number of lines
          in the textbox but just the number
          of characters with the maxlength property. For more information on how to
          accomplish this, I would request you to please go through the following
          article :



          [TextBoxBase.Max Lenght Property]

          http://msdn.microsoft.com/library/de...engthtopic.asp



          Hope this helps.



          Best Regards,
          Mona [Grapecity]



          "Agnes" <agnes@dynamict ech.com.hk> wrote in message
          news:OzIPLtqrFH A.3836@TK2MSFTN GP12.phx.gbl...
          [color=blue]
          > How can I limit the line for the user to input in the "multiline - textbox
          > ?"
          > Thanks a lot.
          >
          > From Agnes
          >
          >[/color]


          Comment

          Working...