Default icon for custom file using C#

M

Maneesh

I have been trying to get a solution to this problem for quite sometime
now.

I produce custom files in my Windows Application (binary serialization
of some objects) with some extention, say "file.abc"

Now I want a default icon to be assigned to this file (like in Office,
the Excel/Word/etc. icon is assigned to appropriate extentions); so
that when somebody double clicks on the file, my application is started
with this file as a parameter, which I catch in Main().

Is there any elegant way of doing this in C# - maybe some setting I
have to include when created the Setup for the application, or maybe
some API I have to use in C# when creating this file.

Thanks in advance.

- Maneesh
 

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