Click here to Skip to main content
15,868,164 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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)
Posted
Updated 2-Aug-13 8:04am
v2
Comments
[no name] 2-Aug-13 14:05pm    
System.Diagnostics.Process
What did you try?
Sergey Alexandrovich Kryukov 2-Aug-13 14:22pm    
How to click button? With the mouse. Please see: http://www.whathaveyoutried.com.
—SA

1 solution

    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
 
Share this answer
 

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