Textbox limit

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

    Textbox limit

    Hi all,
    I've worked out that the limit of a textbox is 64Kb. What can I do if
    the I want to work with text which is, say four or five times as much?
    Can I extend the limit (maxlength??) of the text box or do I have to
    change the textbox for some other component? And yes, I'm very very
    new to VB ;)

    Thank you.
  • Noozer

    #2
    Re: Textbox limit

    > What can I do if[color=blue]
    > the I want to work with text which is, say four or five times as much?
    > Can I extend the limit (maxlength??) of the text box or do I have to
    > change the textbox for some other component? And yes, I'm very very
    > new to VB ;)[/color]

    You could use a RTFbox instead. Rightclick left toolbar -> Components... ->
    Check "Microsoft Rich Text Box" -> OK


    Comment

    • Quack Boy

      #3
      Re: Textbox limit

      On Wed, 1 Dec 2004 22:15:01 +0100, "Noozer" <noozer@NOSPAMh otpop.com>
      wrote:

      [color=blue]
      >You could use a RTFbox instead. Rightclick left toolbar -> Components... ->
      >Check "Microsoft Rich Text Box" -> OK
      >[/color]

      Althougth you would have thought you could just substitute one for the
      other, the RTF seems to screw up the instr function. - Or at least get
      different values from the original txtbox. Can anyone shed anylight on
      this confusion?




      Comment

      • Rick Rothstein

        #4
        Re: Textbox limit

        > >You could use a RTFbox instead. Rightclick left toolbar ->
        Components... ->[color=blue][color=green]
        > >Check "Microsoft Rich Text Box" -> OK
        > >[/color]
        > Althougth you would have thought you could just substitute one for the
        > other, the RTF seems to screw up the instr function. - Or at least get
        > different values from the original txtbox. Can anyone shed anylight on
        > this confusion?[/color]

        It should work as expected on the Text property (as opposed to the
        TextRTF property). On the other hand, InStr isn't really needed since
        the RichTextBox provides a Find method that you can use which, if set
        to, can automatically highlight the text being searched for. In
        addition, the Find method can be set to look for whole word matches as
        opposed to mere text matches (this lets you find all of the "the" words
        without finding it in the middle of "mother" or "father" for example).
        And, also in addition, it can be set to search between a start and end
        position within the file, so you can narrow your search to a specific
        area of the text if desired. You should check it out in the help files.

        Rick - MVP

        Comment

        Working...