I don't want the program to be run on top of another copy of itself. I want something simple to place at the very start of my Main procedure. My application has no forms.
I picture a simple If structure as follows:
Help me fill in the blank.
I picture a simple If structure as follows:
Code:
If ______________ Then
lRetVal = MsgBox("Program is already running.",vbOkOnly)
End
End If
Help me fill in the blank.