Aug 16, 2004 #1 clubriza Programmer Joined Jun 26, 2004 Messages 8 Location GB hi can someone tell me how to get text from a notepad file to read in a richtextbox? cheers clubriza
Aug 16, 2004 #2 secureshell Programmer Joined Sep 24, 2002 Messages 22 Location CA Do you mean you want to read from a text file (e.g. test.txt) and fill it in a rich textbox control? {W r i t e C o d e A n d K i c k A s s} Upvote 0 Downvote
Do you mean you want to read from a text file (e.g. test.txt) and fill it in a rich textbox control? {W r i t e C o d e A n d K i c k A s s}
Aug 16, 2004 #3 PC888 Programmer Joined Nov 7, 2003 Messages 117 Location CA If you are trying to open a NotePad file programatically, you could try: RichTextBox1.LoadFile(filepath, filetype) where filetype is one of the items in the RichTextBoxStreamType enumeration, namely PlainText for NotePad. Happy Programming. Upvote 0 Downvote
If you are trying to open a NotePad file programatically, you could try: RichTextBox1.LoadFile(filepath, filetype) where filetype is one of the items in the RichTextBoxStreamType enumeration, namely PlainText for NotePad. Happy Programming.