Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

VB.net (Starting Application)

$
0
0
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.

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.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>