Advertisement
7_2009-2012 Windows System Services #217255

DetectPreviousInstance

How do I prevent multiple instances of my program? In VB 3 and above, the property App.PrevInstance is set to True if an older instance of the program already exist.

AI

AI சுருக்கம்: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

மூலக் குறியீடு
original-source
Sub Form_Load () 
  If App.PrevInstance Then 
    SaveTitle$ = App.Title 
    App.Title = "... duplicate instance." 'Pretty, eh? 
    Form1.Caption = "... duplicate instance." 
    AppActivate SaveTitle$ 
    SendKeys "% R", True 
    End 
  End If 
End Sub
அசல் கருத்துகள் (3)
வேபேக் மெஷினிலிருந்து (Wayback Machine) மீட்டெடுக்கப்பட்டது