|
-
May 19th, 2005, 07:06 AM
#1
Thread Starter
Addicted Member
[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
-
May 19th, 2005, 07:12 AM
#2
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"
-
May 19th, 2005, 07:26 AM
#3
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?
-
May 19th, 2005, 07:35 AM
#4
Thread Starter
Addicted Member
Re: Is it possible to load a text file into a richtextbox as it is?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|