how to check the application is already running using vb.net..? -


how check application running using vb.net,if application running switch application how using vb.net..?

please me

thanks in advance..

public function isprocessrunning(byval name string) boolean     each clsprocess process in process.getprocesses()         if clsprocess.processname.startswith(name)             return true         end if     next     return false end function private sub adxcmbswitchtodltool_click(byval sender system.object) handles adxcmbswitchtodltool.click     dim path string = "d:\srivani\dlewisscm\dictasolicitor\bin\debug\dictasolicitor.exe"     if isprocessrunning(path) = true      else         process.start(path)     end if end sub 

i wrote code if click on button application open , again click on button again application running..how many times click button many times application running how check opened application , switch application............

just enable "make single-instance application" checkbox in application properties.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -