Aug 16, 2004 #1 clubriza Programmer Jun 26, 2004 8 0 0 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 Sep 24, 2002 22 0 0 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 Nov 7, 2003 117 0 0 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.