473,388 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Default File Icon

Ok I know this was posted before but I can't find it in my reader.

How can you get the Default Icon for a file programmticly so that I can just
throw the Icon in to a item for a listview?

Thanks,
Mike
Nov 20 '05 #1
2 931
Use the SHGetFileInfo function with the SHGFI_ICON constant to retrieve a
handle to the icon representing the file.

Jerry

"Mike Bulava" <mb*****@comcast.net> wrote in message
news:O7****************@tk2msftngp13.phx.gbl...
Ok I know this was posted before but I can't find it in my reader.

How can you get the Default Icon for a file programmticly so that I can
just
throw the Icon in to a item for a listview?

Thanks,
Mike

Nov 20 '05 #2
* "Mike Bulava" <mb*****@comcast.net> scripsit:
Ok I know this was posted before but I can't find it in my reader.

How can you get the Default Icon for a file programmticly so that I can just
throw the Icon in to a item for a listview?


<http://vbaccelerator.com/article.asp?id=4302>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

1
by: Hai Ly Hoang | last post by:
Creating an Windows application with C# (a.exe). My program a.exe has default icon (in Windows Explorer). How to change default icon for my program ? (Certainly, not by creating an shortcuts to...
1
by: quest | last post by:
I created windows application using C#. I tried to replace the default application icon by replacing the app.ico file in the project directory but the application still load the old icon. Can...
6
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...
3
by: melon | last post by:
This is a silly question. When I create a new project, Visual Studio assigns a default icon (the one with some small colorful squares) to the program. The icon is used in the title bar but not as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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...

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.