VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Only one Instance

by DUKE (1 Submission)
Category: Complete Applications
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (1 Votes)

If the programm runs, you can't start it again!

Inputs
base module(insert the code) change in project/options "form1" into "Sub Main"
Assumes
nothing
Code Returns
nothing

Rate Only one Instance

Sub Main()
Dim OldTitle$
  If App.PrevInstance Then
    OldTitle = App.Title
    App.Title = "Newapp.exe"
    AppActivate OldTitle
    End
  End If
  Form1.Show
End Sub

Download this snippet    Add to My Saved Code

Only one Instance Comments

No comments have been posted about Only one Instance. Why not be the first to post a comment about Only one Instance.

Post your comment

Subject:
Message:
0/1000 characters