Warn The User Of a Previous Instance

If App.PrevInstance Then
     sMsg = App.EXEName & " already running! "
     MsgBox sMsg, 4112
     End
End If

 

This tip is reprinted from the VB Tips & Tricks Volume 1 book.


Discover more from dotNetTips.com

Subscribe to get the latest posts sent to your email.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.