Multiple file format supporting Notepad application
I am developing a notepad which will support multiple file formats(such as .doc,.docx,.pdf,.html,.rtf,.txt.....etc).At present it supports only .txt and .rtf format.But how can i load other extension files in my Notepad or how can it support all extension files? Thanks for any advance..
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sam HobbsRank #107 · 20.5K reputationPosted Nov 4, 2011, 11:30 AM EDT
I don't know the details of how to do it in managed code but there is probably a way to get information about what object to use for an extension. For example, you need to know that for a doc extension you need to use Word. However you do it, you need to be able to determine what control to use to show each type of file.
I think that the ContainerControl Class is the .Net way to embed an object and note that the Form class is derived from it, so that probably makes it quite easy to embed an OLE document into a form. I don't know trhe details of how to do it.
Shuvro Pall132 reputationPosted Nov 4, 2011, 10:27 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Nov 5, 2011, 10:53 AM EDT