1 Replies - 2071 Views - Last Post: 06 April 2012 - 07:05 AM Rate Topic: -----

#1 JavaSuperNoob  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 57
  • Joined: 13-February 12

Loading Resource file into Richtextbox

Posted 06 April 2012 - 06:54 AM

I have a resource fie called ReadMe.txt now i want its text to be loaded on RichTextBox, anyway i can do that?
Is This A Good Question/Topic? 0
  • +

Replies To: Loading Resource file into Richtextbox

#2 nK0de  Icon User is offline

  • Catch me As Exception
  • member icon

Reputation: 204
  • View blog
  • Posts: 823
  • Joined: 21-December 11

Re: Loading Resource file into Richtextbox

Posted 06 April 2012 - 07:05 AM

The simplest way to load a file to a RichTextBox is to use the LoadFile method. More info here.

Other than that, you can use StreamReader to read content from the file and display it in the RichTextBox.

Or make use of this method too.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1