473,804 Members | 3,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Associating an Embedded Icon with Application's Documents

Hi,

In
<http://groups-beta.google.com/group/microsoft.publi c.dotnet.langua ges.csharp/msg/05abaf8460c6185 9>,
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
0 1358

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1709
by: Arda Coskun | last post by:
Hi, How to create embedded graphics and audios? Any article would be helpful. Kind regards,
1
1217
by: kurotsuke | last post by:
I need to associated more than one icon to an application (an icon for the application and an icon for the documents associated to it). How can I do it? At the moment I'm only able to associate an icon (the one set in project properties that is also the program icon). Thanks.
8
440
by: Wayne Hoover | last post by:
I have an embedded icon resource in my project - I need to reference this icon for a grid cell. I've tried using the following but it does not work. Any help appreciated: Dim im As System.Drawing.Image im = CType(getobject("CHECKMRK.ICO"),System.Drawing.Image) <-- Fails here. g_mainform.fg.SetCellImage(g_mainform.FG.Row, 5, im)
5
2544
by: Wayne Hoover | last post by:
I have an embedded icon resource in my project - I need to reference this icon for a grid cell. I've tried using the following but it does not work. Any help appreciated: Dim im As System.Drawing.Image im = CType(getobject("CHECKMRK.ICO"),System.Drawing.Image) <-- Fails here. g_mainform.fg.SetCellImage(g_mainform.FG.Row, 5, im)
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.