By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,759 Members | 1,712 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,759 IT Pros & Developers. It's quick & easy.

Associating an Embedded Icon with Application's Documents

P: n/a
Hi,

In
<http://groups-beta.google.com/group/microsoft.public.dotnet.languages.csharp/msg/05abaf8460c61859>,
back in 2003, "SleazySt" wrote that
Unfortunately, C# projects can't have resource scripts.
Resources added to .NET applications by adding them to
the project and designating them an "Embedded Resource"
are included in a new .NET-specific format that's not
compatible with previous methods. The only icon you
can correctly embed in your application using C# on
VS.NET is the application icon, accessible from the
project properties. If you need additional icons --
e.g. an icon to represent a document file handled
by your app rather than to represent the app itself
-- you'll need to either include the ICO files
themselves, or compile a DLL with C++ with your
icons embedded.


Is this still true? I am trying to associate an icon with my
documents; I'm using the Inno Setup installer
<http://www.jrsoftware.org/isinfo.php> and finding that its
instructions for associating a file based on an embedded icon don't
work for the second icon in the file, although they work for the first
icon. I would prefer not to clutter my users' disks with any more
files than necessary, so the embedded resource route looks nice - if it
will work.

Thanks,
--Carl

Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.