473,569 Members | 2,984 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best way to find the Icons associated with a given File Extension?

Hi,

I need to find the Icons associated with a given file extension. I guess there
are registry entries for that. Is there a generic way of getting them?

Thanks a lot in advance,

Matthias
Nov 16 '05 #1
2 2157
See: HOW TO: Use the SHGetFileInfo Function to Get the Icons That Are
Associated with Files in Visual C# .NET
http://support.microsoft.com/?kbid=319350

--
Scott
http://www.OdeToCode.com/

On Sat, 09 Oct 2004 14:11:26 +0200, "Matthias S."
<po*****@emvoid SPAMTRAP.de> wrote:
Hi,

I need to find the Icons associated with a given file extension. I guess there
are registry entries for that. Is there a generic way of getting them?

Thanks a lot in advance,

Matthias


Nov 16 '05 #2
Hey Scott,

exactly what I was looking for. Thanks a ton.

Regards,

Matthias

Scott Allen wrote:
See: HOW TO: Use the SHGetFileInfo Function to Get the Icons That Are
Associated with Files in Visual C# .NET
http://support.microsoft.com/?kbid=319350

--
Scott
http://www.OdeToCode.com/

On Sat, 09 Oct 2004 14:11:26 +0200, "Matthias S."
<po*****@emvoid SPAMTRAP.de> wrote:

Hi,

I need to find the Icons associated with a given file extension. I guess there
are registry entries for that. Is there a generic way of getting them?

Thanks a lot in advance,

Matthias


Nov 16 '05 #3

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

Similar topics

0
10771
by: Garet Cammer | last post by:
I am writing a VB 6.0 program similar to Windows Explorer, which has a tree view and a list view to select directories and files. I would like to associate an icon with each file, according to the standard file extension, or use application file's own icon, just like the Explorer does. It is quite easy to place a icon using the ImageList...
1
1833
by: Jakob Bengtsson | last post by:
Hi, Does anyone know how to get the icons for all filetypes installed on the system? I can extract the associated icon from a file, but I don't know how to: 1) Get a list of filetypes; 2) Get the associated icon for those filetypes. Thanks for any help,
1
1720
by: moquet.laurence | last post by:
In the registry, File extension's icons are stored like this : filename,resource_number. How can I extract the specific resource number from this file (using .Net framework)?
1
15038
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 file icon, this isn't showed. I tried to do by two ways: 1- By creating the ListViewItem and adding it to ListView, then I get rectangle of icon...
7
8064
by: Shane Story | last post by:
I want to be able to get the icon associated with a certain file extension. I can read the registry hkey_classes to get the ext. then look to the other key for default icon. How can I then extract the icon in file x at index 1 or whatever? Again, I am not dealing with a file exactly but with a string path of the file that has an...
1
1329
by: Progalex | last post by:
Hi guys.. How can I obtain the associated icon for each file extension registered on my machine via Visual Basic 2005 code? Many thanks.. Alessandro
2
3430
by: SharpCoderMP | last post by:
i'm trying to embed multiple program icons in my executable. the only way so far i managed to do that is to embed native win32 resource file with multiple icons. it works, but... when i create a native win32 resource file with the VS 2005 and put there my icons, VS always converts some of the 32bit icons into 24bit - so i loose alpha blending...
6
4836
by: Mike | last post by:
Hi, I am developing a document management system in MS Access (adp on top of SQL Server). One thing I would like to do in my listview is show the default icon associated in Windows with that specific file extension (e.g. show the excel icon when my file has an xls-extension as Windows Explorer does). I found some neat VB-code to extract...
3
272
by: cal | last post by:
Hi group, Wich one is the class to handle desktop icons? I want to modify for example the file path the Icon points to. of course, its the path of the file u open when u doubleclick the icon. Are there managed classes available ?, thanks, Carlos.
0
7703
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...
0
8138
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...
1
7681
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...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5228
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...
1
2118
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
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
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...

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.