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
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center