Having an application open a document on startup

  • Thread starter Thread starter Jason Michel
  • Start date Start date
J

Jason Michel

Hello,

I'm developing an xml reader/editor using Windows forms. From the Windows
OS, I would like to open xml documents with my application. So, what do I
do in my application on startup to get access to the document that was
clicked in Windows?

Thanks, Jake
 
It is passed on the command line (assuming that the application has a valid
file association in the registry).

For XML I believe there are some additional special processing that can take
place (i..e the OS is able to look at the header of the XML file. A word
document is opened by Word and an Excel file by Excel thought they both have
a .xml extension).

What is the point you are looking for ?
 
Hi Patrice,

I think what Jason is looking for is "How to implement such
functionality in an application, that double clicking on an associated
file will launch the application and open the document in that
application".

For instance, he creates an application "CrazyProgram". What changes
must he make to this program to allow it open ".crzy" files once
installed ?

Regards,

Cerebrus.
 
Back
Top