rtf and txt files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is the code for the FileOpen Sub:
RichTextBox1.LoadFile(OpenFileDialog1.fileNane) --> This open an rtf file
RichTextBox1.text(OpenFileDialog1.fileNane) ----> I am trying to open a text file at the same time in MDI app.
It won't accept it.

jbat
 
* "=?Utf-8?B?amJhdA==?= said:
This is the code for the FileOpen Sub:
RichTextBox1.LoadFile(OpenFileDialog1.fileNane) --> This open an rtf file
RichTextBox1.text(OpenFileDialog1.fileNane) ----> I am trying to open a text file at the same time in MDI app.
It won't accept it.

Have a look at the overloaded versions of 'LoadFile' which allow you to
specify the format of the file you load in the 2nd parameter (samples
available in the documentation for 'RichTextBox.LoadFile').
 
Back
Top