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..
Sam HobbsPosted Nov 5, 2011, 2:53 PM
Shuvro PallPosted Nov 5, 2011, 2:27 AM
Sam HobbsPosted Nov 4, 2011, 3:30 PM
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.