Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-07-2001, 04:19 PM   #1
Member (3 bit)
 
Join Date: Apr 2001
Posts: 6
Send a message via AIM to stickman373 Send a message via Yahoo to stickman373
Post

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?
stickman373 is offline   Reply With Quote
Old 04-07-2001, 04:29 PM   #2
Member (12 bit)
 
Paul Victorey's Avatar
 
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.
Paul Victorey is offline   Reply With Quote
Old 04-07-2001, 04:56 PM   #3
Member (3 bit)
 
Join Date: Apr 2001
Posts: 6
Send a message via AIM to stickman373 Send a message via Yahoo to stickman373
Post

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.
stickman373 is offline   Reply With Quote
Old 04-07-2001, 06:17 PM   #4
Member (12 bit)
 
Paul Victorey's Avatar
 
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.
Paul Victorey is offline   Reply With Quote
Old 04-08-2001, 06:29 PM   #5
bob
Member (12 bit)
Premium Member
 
bob's Avatar
 
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.

bob is online now   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:54 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2