How do I code my program to allow use of 'Open With...'
I've got a program which allows opening of .txt files, but the program has to bne running.
I'd like the user to be able to pass the file to my program (which isn't running), then for the program to execute and open the file.
EG.. when you click on a .TXT file in Windows Explorer, you can choose to open it with notepad, wordpad, word etc... When you choose one of these it loads the file into the selected program
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
This only shows me how to create multiple associations. If I just send the file to my .EXE, will it automatically load it via OLE?
You need to use the Command function in your application to retrieve the path to the file
Microsoft MVP (Visual Basic)
Why not use ...
As indicated in earlier reply, you should use the 'Command' info to see what has been passed. But why not use 'Send to' instead of 'Open with'? that way the user can choose what app to send the file to, even if it is a .txt that would default to Notepad on a dbl-clk
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL