473,490 Members | 2,486 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Need help with Creating Icon Handlers

Jmc
Hi
I need some help with implementing Custom Icon Handlers using c#.
I want to show special icons(that I generate) for various file
extentions.

Lets say for example that I want all bmp images to have the image as an
icon.
I understand that I need to implement the a number of interfaces,
IUnknown, IPersistFile and IExtractIcon (right?).
But how do I actually do that using c#?

Best regards
/Jimmy

Jul 21 '06 #1
2 1652
Hi Jmc,

First of all, you don't need to implement IUnknown because all Interop'ed
framework objects will implement that interface by default.

Here is a link that is the first in a hierarchy of web pages on MSDN
dedicated to information about Interoperability in the .NET Framework and
Visual Studio:

http://msdn2.microsoft.com/en-us/library/ms172270.aspx

Also, I believe you can just use the registry somehow to associate a default
icon with a particular file extension but I'm not sure how to do that.
Maybe someone else could provide that information to you or you could
research it on the web. It's probably really simple and might save you some
headaches if your not familiar with Interop.

- Dave Sexton

"Jmc" <jm*****@hotmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi
I need some help with implementing Custom Icon Handlers using c#.
I want to show special icons(that I generate) for various file
extentions.

Lets say for example that I want all bmp images to have the image as an
icon.
I understand that I need to implement the a number of interfaces,
IUnknown, IPersistFile and IExtractIcon (right?).
But how do I actually do that using c#?

Best regards
/Jimmy

Jul 21 '06 #2
Jmc
Thanks Dave
I will check out the link you recomended, the answers are probably
there =)

/Jimmy

Jul 21 '06 #3

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

Similar topics

3
5258
by: Jeff Shannon | last post by:
I'm having some difficulty getting my logging configuration set correctly. I'm using a config file (copied at end of post), with the intent of setting several loggers which write to a combination...
4
1745
by: Bernie Yaeger | last post by:
I now know how to gather the file type icons and I'm able to use them in a listview. But a listbox does not have a .smallimagelist or .largeimagelist member, so I don't know how to translate that...
2
2548
by: Elad Gutman | last post by:
Hi Everyone, I'm facing an annoying problem and any help will be most appreciated . .. . I have a main application form and its icon is functioning excellent: it appears both in the taskbar...
3
1623
by: Thomas Bender | last post by:
Hi, how can i start / run my programm as "Tray Icon" in C# ? Thx, cya Thommy
1
15020
by: Víctor | last post by:
I'm doing a kind of file explorer with some additional funcionalities. The problem is that I'm not able to draw file extension icons in a ListView. I know how obtain icons, but when I try to draw...
1
9330
by: Miguel Dias Moura | last post by:
Hello, I have a GridView in my page which is created in runtime. It works fine. My page has 2 Asp Buttons: - The HIDE button makes GridView.Visible = False; - The SHOW button makes...
2
1436
by: shakthi | last post by:
hi, Am trying to create a dialog box in MFC that has two buttons and an edit control.When i click button1,a dialog box that displays all the files in the system is displayed.when i select a...
1
1603
by: namrataa | last post by:
i have a notify icon for our media player developed in wpf. included files are notify.cs,notify.resx,notify.designer.cs. i have also added a class file called app.cs . now the problem is how...
0
1337
by: Gabriel Genellina | last post by:
En Thu, 05 Jun 2008 04:14:07 -0300, <Dominique.Holzwarth@ch.delarue.com> escribió: How do you use that class? raise MyInheritedError(...)? So you're creating the handler and logger and all...
0
7112
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,...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
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...
0
7356
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...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1389
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 ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
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...

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.