Thread: Lesson 8, Ex. 1
View Single Post
  #1 (permalink)  
Old May 31st, 2013, 10:59 PM
John S John S is offline
Authorized User
Points: 179, Level: 3
Points: 179, Level: 3 Points: 179, Level: 3 Points: 179, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Lesson 8, Ex. 1

Rod,

I sent you this in email:

How are we supposed to know how to do this?

We're supposed to load a file, not just the filename, right?

Even after I looked at the source code from the website, I don't see how we
could know how to do this.

and you replied:

"Yes, load the file. The exercise says to use the RichTextBox's LoadFile and SaveFile methods. Just pass them the names of the selected files. Those methods only work with Rich Text Files but the book will talk about other types of files later.


Rod "

I looked at the source code, but I don't remember you covering this stuff in the book anywhere.. not sure how we are supposed to know how to do this Exercise.

Not sure where you covered something like StreamType:

" // Open the file.
contentRichTextBox.LoadFile(
openFileDialog.FileName,
RichTextBoxStreamType.RichText);

???