Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2007

Tip: Looking for answers? Try searching our database.

Default icon for custom file using C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Maneesh - 11 Jan 2007 00:37 GMT
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
Kevin Spencer - 11 Jan 2007 14:40 GMT
This can be done in a Setup/Deployment Project in Visual Studio, using the
"File Types" Window of the project.

Signature

HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

Where there's a Will, there's a William.

>I have been trying to get a solution to this problem for quite sometime
> now.
[quoted text clipped - 14 lines]
>
> - Maneesh
Maneesh - 11 Jan 2007 19:13 GMT
Thanks Kevin.

- Maneesh

> This can be done in a Setup/Deployment Project in Visual Studio, using the
> "File Types" Window of the project.
[quoted text clipped - 27 lines]
> >
> > - Maneesh

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.