|
-
Jan 23rd, 2003, 08:02 PM
#1
Thread Starter
Addicted Member
Loading a file...
How do i load a document onto a rtf? in the vbcodebook it asks the user to open it, i just want to open one that comes with the app... if you have any questions ask...
Thanks
-
Jan 23rd, 2003, 09:45 PM
#2
What are you using to make the document? Word or Wordpad can save to RTF.
-
Jan 23rd, 2003, 09:56 PM
#3
Thread Starter
Addicted Member
I have Wordpad and i would use that to to save it as an RTF but how do i (line of code) load it up when the user presses the treeview
-
Jan 23rd, 2003, 11:08 PM
#4
You have to use the Richtextbox. I think the .NET rtb still has methods to load/save rtf files if not then assign the rtf text to the rtf property of the Richtextbox.
-
Jan 25th, 2003, 04:25 AM
#5
Hyperactive Member
I don't know wheter you've sorted this out, but try this:
VB Code:
RichTextBox1.LoadFile("<path and file>", RichTextBoxStreamType.RichText)
I'll add this to the VBCodeBook
-
Jan 25th, 2003, 11:08 AM
#6
Thread Starter
Addicted Member
ok thanks nicky
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|