Tutoriel [VB.NET] Source - Persistance basique

Kilo-25

Premium™
Premium™
28/4/17
75
57
618
#1
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
     If Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName).Length < 2 Then 'If self is Opened Less than twice
          Process.Start(Process.GetCurrentProcess.ProcessName)  'Start own instance
     End If
End Sub
 
J'aime: RoRoH_AR
R

RoRoH_AR

Visiteur
Visiteur
#2
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
     If Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName).Length < 2 Then 'If self is Opened Less than twice
          Process.Start(Process.GetCurrentProcess.ProcessName)  'Start own instance
     End If
End Sub
:hi: