how can i know My Application is already running.I want to abort new application and pop up to user to close already running application.I am using App.PrevInstance object but its not working. I want to use mutex and windowform..how can i use it..Plzz help..
Jump to Post
Use App.PrevInstance: 'this code would be in a bas module for start up.' Private Sub main() 'Check for previous instance and exit if found.' Dim rc As Long If App.PrevInstance Then rc = MsgBox("Application is already running", vbCritical, App.Title) Exit Sub Else frmMain.Show End If End Sub …
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.