PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Default icon for custom file using C#
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Default icon for custom file using C#
![]() |
Default icon for custom file using C# |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
This can be done in a Setup/Deployment Project in Visual Studio, using the
"File Types" Window of the project. -- HTH, Kevin Spencer Microsoft MVP Bit Player http://unclechutney.blogspot.com Where there's a Will, there's a William. "Maneesh" <maneeshkhare@gmail.com> wrote in message news:1168475837.782696.66840@i56g2000hsf.googlegroups.com... >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 > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thanks Kevin.
- Maneesh Kevin Spencer wrote: > This can be done in a Setup/Deployment Project in Visual Studio, using the > "File Types" Window of the project. > > -- > HTH, > > Kevin Spencer > Microsoft MVP > Bit Player > http://unclechutney.blogspot.com > > Where there's a Will, there's a William. > > "Maneesh" <maneeshkhare@gmail.com> wrote in message > news:1168475837.782696.66840@i56g2000hsf.googlegroups.com... > >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 > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

