473,386 Members | 1,819 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,386 software developers and data experts.

File Icons

Hello,

Is there a way to, after creating a binary (or other kind of) file using a
FileStream object, to set its icon in Windows?

Apr 5 '07 #1
2 1033
"Peter" <st*****@hotmail.comschrieb:
Is there a way to, after creating a binary (or other kind of) file using a
FileStream object, to set its icon in Windows?
The icon depends on the file type (extension, such as "file.txt", "foo.doc",
"bla.ico").

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Apr 6 '07 #2
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:u%****************@TK2MSFTNGP04.phx.gbl...
"Peter" <st*****@hotmail.comschrieb:
>Is there a way to, after creating a binary (or other kind of) file using
a FileStream object, to set its icon in Windows?

The icon depends on the file type (extension, such as "file.txt",
"foo.doc", "bla.ico").
For known file types, yes... but lots of programs create proprietary file
types that have their own icons. Is that a registry issue? And if so, how
would I go about registering a new file type programatically?

This question strays a bit off the topic of this forum, but in previous
version of Windows, a user could set a file icon on a file-by-file basis.
This doesn't seem to be possible any more in XP (I haven't yet moved to
Vista). Or is it?

Apr 7 '07 #3

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

Similar topics

5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
5
by: Eric | last post by:
I want to use embedded icon resources for my file type associations, but only the app.ico seems to show up when I go to choose the icons in the setup File Types editor. The same thing when I try...
3
by: Bill Short | last post by:
On one of my users desktops I have setup multiple icons to open Access applications (Access 2k). In the target line I have specified the path to msaccess.exe, the path of the system.mdw and the...
4
by: redneon | last post by:
I've written a simple application which connects to an FTP server and recursively lists the contents of the directories in this server in a ListBox. What I'm wanting to do is change the ListBox and...
1
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
by: John Holmes | last post by:
I have some icons that I used in a VB6 program several years ago and I'd like to use the same icons in a newer C# windows forms app. I haven't been able to find the icons which are common icons for...
1
by: nick | last post by:
I'm wondering if it's possible to access and use windows file icons in a webpage using, for example, the shell method SHGetFileInfo. I'm writing a small asp.net app to browse directories on a...
0
by: Frank | last post by:
If I have an icon file that contains one icon ExtractIconEx tells me there is one there. If the file contains 1 32x32 icon and one 16x16 icon ExtractIconEx still tells me there is one. I need...
2
by: Ashutosh | last post by:
Hi, I am trying to include icons in my .net exe so that I can select those icons for the shell, like setting the icons of shortcuts, icons for some file types, etc... I tried to include the...
1
by: John | last post by:
Is there such a thing as storing icons or bitmaps into a resource file, and adding more icons or bitmaps into the resource file at runtime? I want to store a bunch of icons into a resource file,...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.