Thread: Lesson 8, Ex. 1
View Single Post
  #2 (permalink)  
Old June 1st, 2013, 11:38 AM
Rod Stephens's Avatar
Rod Stephens Rod Stephens is offline
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Quote:
How are we supposed to know how to do this?
It says in the description of the exercise how to do this: Use the RichTextBox control's LoadFile and SaveFile methods.

Those methods are summarized in Table 7-3 on page 82. There's a code snippet that demonstrates LoadFile on the bottom of page 82 and there's another snippet that demonstrates SaveFile in the middle pf page 84.

Quote:
Not sure where you covered something like StreamType:
The Typing Tips sidebar on pages 83 - 84 talks about the stream type parameter. It basically tells the LoadFile method what kind of file it will be loading.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)