|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (3 bit)
|
I was wondering if anyone knows how to set the icon associated with a file type. Say I make a new file type with an ending called .nft How do I set the icon associated with that file type?
|
|
|
|
|
|
#2 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
That depends. Are you trying to automatically do this in a program, or do it manually?
__________________
Paul M. Victorey ------------------ I am not responsible for any problems that may arise as a result of following my advice. This includes, but is not limited to, computer failure, loss of data, nuclear war, famine, boils, no clean laundry, your daughter running off with a biker gang, or armageddon. Take my advice at your own risk. |
|
|
|
|
|
#3 |
|
Member (3 bit)
|
well lets say i create a program that opens and creates files with an ending .nft How do I make those files have a file icon that i choose. Also if I create these files manually using notepad how do I make the icon different?
An explanation of both ways would be helpful. By the way I'm using VB 6.0 if that matters. |
|
|
|
|
|
#4 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
I've been wondering exactly how to do this myself.
I have to believe there is SOME WinAPI call that handles things like this. I'll look into this, and tell you if I find anything. |
|
|
|
|
|
#5 |
|
Member (12 bit)
Premium Member
Join Date: Mar 1999
Location: LA, CA
Posts: 2,227
|
HKEY_CLASSES_ROOT
Create 2 keys .ntf - default value = ntffile ntffile default value = ntffile - or whatever Open file type dialog box on explorer and add the icon. Go back to the registry keys and save as reg files. That should get you close. As for editing the icons rename the .ico to .bmp and edit with paint. Rename to .ico when done Paul, Check out space.com it has great discussion forums. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|