Results 1 to 4 of 4

Thread: [Resolved] Is it possible to load a text file into a richtextbox as it is?

  1. #1

    Thread Starter
    Addicted Member senthilkumartd's Avatar
    Join Date
    Feb 2005
    Posts
    206

    Resolved [Resolved] Is it possible to load a text file into a richtextbox as it is?

    Hi guys,
    I wish to show a text file content into a text or richtext box control. I did, but it wraps the text. Because there are 200 characters per line. Eventhough I set the Multiline property to TRUE and Scrollbars to BOTH, it wraps the text of the textfile. Could anybody help me?. Pls give source code if. Is there any other way to load the large text file as it is created?.

    yours,
    Senthil
    Last edited by senthilkumartd; May 19th, 2005 at 07:38 AM. Reason: resolved

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Is it possible to load a text file into a richtextbox as it is?

    for a richtextbox, set the right margin to something like 250000. then its sure not to wrap.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Is it possible to load a text file into a richtextbox as it is?

    Are you making the width wide enough to display 200 characters? I think that's the delimiter, as there is no width property. I have a routine that sets the width to that of a printer, and displays the characters at 1/2 the size, so I think that would be the way to do it. Can you use a smaller font?

  4. #4

    Thread Starter
    Addicted Member senthilkumartd's Avatar
    Join Date
    Feb 2005
    Posts
    206

    Re: Is it possible to load a text file into a richtextbox as it is?

    thanks friend.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width