Opening a file in my application from File Explorer

走远了吗. 提交于 2019-12-12 10:59:13

问题


I've created my own application in VB.NET that saves its documents into a file with it's own custom extension (.eds).

Assuming that I've properly associated the file extension with my application, how do I actually handle the processing of the selected file within my application when I double click on the file in File Explorer?

Do I grab an argsc/argsv variable in my Application.Load() method or is it something else?


回答1:


Try this article but short answer is My.Application.CommandLineArgs



来源:https://stackoverflow.com/questions/9161/opening-a-file-in-my-application-from-file-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!