Check if appliacation already running in vb.net
Posted on 2016-08-03
I have the following code to launch an external program via a button
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "C:\Program Files (x86)\Campaign Maintenance\MarketingCampaignFrontEnd.exe"
Works fine except that if the button is clicked multiple times, multiple instances of the program are launched
I'd like to add code so that the application is only started if it is not already running