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..
Gulzar_1
0
Newbie Poster
Recommended Answers
Jump to PostUse 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
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.