如何在vb.net中打开文件 [英] how to open file in vb.net

查看:294
本文介绍了如何在vb.net中打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

how to open file in vb.net


When I click on the button opens the file
Example on the file: exe , pdf , jpg ………..

推荐答案

假设这是Winforms,而不是基于网络:

Assuming this is Winforms, rather than web based:
Process.Start(myFilePath)

应该这样做。

你可能可以'如果它是基于Web的,那就做你想要的,因为代码是在服务器而不是客户端上执行的。

Should do it.
You probably can''t do what you want if it is web based, as the code is executed on the Server, not the Client.


这篇关于如何在vb.net中打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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