Having an application open a document on startup

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
 
P

Patrice

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 ?
 
C

Cerebrus

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top