Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie question

Status
Not open for further replies.

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
 
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}
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top