Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: C# rich text box need help  (Read 3174 times)

0 Members and 1 Guest are viewing this topic.

perkunas

    Topic Starter


    Greenhorn

    • Experience: Beginner
    • OS: Unknown
    C# rich text box need help
    « on: April 12, 2012, 02:47:41 PM »
    I created a file TextFile1.txt and I want it to load into the rich text box but not having any luck
    tried this

    richTextBox1.LoadFile("TextFile1.txt", RichTextBoxStreamType.PlainText);

    Joedude



      Greenhorn
      • Experience: Beginner
      • OS: Windows XP
      Re: C# rich text box need help
      « Reply #1 on: April 30, 2012, 07:09:30 AM »
      try
      richTextBox1.LoadFile(@filepath, RichTextBoxStreamType.PlainText);
      check my spelling