B4J Question Check if an application is running (Solved)

Colin Evans

Active Member
Licensed User
Longtime User
Hi Is there a way of checking if an application is already running to stop the user from running a second, and if so switch to the program and make the window active?

in VB6 I would use the following to stop the program from running a duplicate

B4X:
If App.PrevInstance = True Then
   MsgBox "Your Application Is Already Running", vbInformation + vbOKOnly, "Application Already Running"
   Unload Me
   End
End If
 

behnam_tr

Active Member
Licensed User
Longtime User
 
Upvote 0
Top