通过文件资源管理器在我的应用程序中打开文件 [英] Opening a file in my application from File Explorer

查看:97
本文介绍了通过文件资源管理器在我的应用程序中打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在VB.NET中创建了自己的应用程序,该应用程序将其文档保存到具有其自定义扩展名(.eds)的文件中.

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?

我是在Application.Load()方法中获取argsc/argsv变量,还是其他内容?

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

推荐答案

尝试本文,但简短的答案是My.Application.CommandLineArgs

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

这篇关于通过文件资源管理器在我的应用程序中打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆