borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (New AndreaVB Links)Next Topic (on line and shape controls) New Topic New Poll Post Reply
AndreaVB Forum : VB General : exe and file type association
Poster Message
phrantom
Level: Guest


icon exe and file type association  Archived to Disk

Sorry if this is a simplistic question, but I am just getting started with VB.  I have written a simple picture viewer which allows the user to select an image file and displays the image.  What I would like to do is associate the .exe file with certain file type, and have the program start up when a file of that type is selected and display the selected file.  I have associated the file type with the program, so it does start when I double click the file, but it does not display the file.  How can I pass the file information to the VB program so it will know what file to display when it starts?

TIA,
  Tom

25-04-2002 at 08:09 PM
| Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1658
icon Re: exe and file type association  Archived to Disk

If you go to: http://vbsquare.com/files/association/, it has the code there (by another person).

Not sure if the code works, but it's there.

A few things though for you to consider: 1) if any other program uses the same extension, ask the user before just making your's the default for it, 2) http://filext.com has a listing of many file extensions, so you can see which ones may cause problems.

26-04-2002 at 03:23 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VB General : exe and file type association
Previous Topic (New AndreaVB Links)Next Topic (on line and shape controls) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder