VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Check for PrevInstance

Sergio del Rio  (3 Submissions)   VB function enhancement   VB Script   Intermediate   Wed 3rd February 2021

This code checks for a previous instance of the program. This is not like the App.PrevInstance property. This checks the prevInstance no matter the location of the file, or the name of the app. You don't have to call DestroyWindow to destroy the created window, since when you quit the application, it is self destroyed. This may not work in the VB IDE, because the window is created by VB6.EXE. In this case you can call DestroyWindow in the Form_Unload().

Rate Check for PrevInstance (8(8 Vote))

Download Check for PrevInstance

Check for PrevInstance Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters