I attached rtf docum开发者_StackOverflowent to my app, and I want its content to be display in RichTextBox, I know how to do that with rtf file from disk, but I can't access file in project.
If you added the rtf file as "Embedded Resource" in your project use GetManifestResourceStream etc functions on the executing assembly. Check out a sample here : http://lamahashim.blogspot.com/2009/06/c-reading-embedded-files-at-runtime.html
精彩评论