如何单击按钮打开一个可删除文件? [英] How to click button to open an excutable file ?

查看:81
本文介绍了如何单击按钮打开一个可删除文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的问题我想让一个Windows窗体应用程序打开一个exe文件behing a buttom就意味着(当我点击按钮时所选文件从任何地方打开)

This is my problem i wnat to make a windows form application to open an exe file behing a buttom it means ( When i click on the button the selected file open up from any where)

推荐答案

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Try
            Process.Start("C:\Users\Mack\Desktop\FunPlay.exe")
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try

    End Sub
End Class


这篇关于如何单击按钮打开一个可删除文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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