Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I open directly a file / files at form load without open file dialog. File path of a Form load Open File / Folder Dialog How do without. For example, I want open directly from Windows Explorer. Sorry my language skill.

What I have tried:

I tried ( environment path ) and io.file. ...., but that is no
Posted
Updated 9-Dec-16 22:18pm

1 solution

You could set a file association, which lets you double-click a file with a certain extension to open it with the associated application. However, you must be aware that unless the file in question has an extension that is unique to your application, you might break an existing association, or risk loading files that are not compatible with your app's file loading code.
 
Share this answer
 
Comments
Taskker 10-Dec-16 5:39am    
Thanks
Taskker 10-Dec-16 5:49am    
Can you next help for ( *.txt ) example codeline, sir.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900