io.kent Posted June 17, 2013 Report Share Posted June 17, 2013 On upside in your project put this code means after public class Form1.Sub CheckIfAlreadyRunning()If Not Process.GetProcessesByName(Process.GetCurrentProce ss.ProcessName).Length > 1 Then Exit SubMsgBox("The application is allready running", MsgBoxStyle.Critical, "System")EndEnd SubAnd now just in forum load put thisPrivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadCheckIfAlreadyRunning()End sub Quote Link to comment Share on other sites More sharing options...
Byte-ul Posted June 18, 2013 Report Share Posted June 18, 2013 Daca aceeasi aplicatie este rulata sub 2 nume diferite codul asta nu va functiona. Quote Link to comment Share on other sites More sharing options...
em Posted June 18, 2013 Report Share Posted June 18, 2013 Eu fac asaIf App.PrevInstance Then Unload Me EndEnd If Quote Link to comment Share on other sites More sharing options...