Hi, im trying to compile simple programs in one form and when you click the button it will run the program automatically.
Im trying to use this video tutorial, but when i try and click the button it freezes.
Im trying things like this, but after clicking the button it freezes. and i need to stop it
Thanks in advance.
Im trying to use this video tutorial, but when i try and click the button it freezes.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim test As New System.Diagnostics.Process
With test
.StartInfo.WorkingDirectory = "C:\Program Files\CCleaner\"
.StartInfo.FileName = "CCleaner.exe"
End With
test.Start()
End Sub
End Class
Im trying things like this, but after clicking the button it freezes. and i need to stop it
Thanks in advance.