Oct 7th, 2002, 08:39 AM
#1
Thread Starter
Hyperactive Member
Document Type
How can I make files with a specified extension automatically open with my vb application. (of course, I want to use vb code to do that)
Oct 7th, 2002, 08:47 AM
#2
Frenzied Member
Create a file association in the Registry:
http://www.mvps.org/vbnet/code/reg/association.htm
Then read the command line for the name of the file:
Oct 7th, 2002, 08:57 AM
#3
PowerPoster
You will need to create a file acossiatiaon. I have my own version but I'm attaching somebody else's because it's much shorter. Don't know his/her name to mention it but all the credirs belong to original author .
;-)
Attached Files
Oct 7th, 2002, 09:03 AM
#4
Thread Starter
Hyperactive Member
thanks, that helped a lot. but, what about the File Icon, how can I specify it?
Oct 7th, 2002, 09:09 AM
#5
PowerPoster
In the example I've posted it's part of a structure:
myFileType.IconPath = "c:\temp\myicon.ico"
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width