Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. private void Form1_Load(object sender, EventArgs e)
  2. {
  3. //Si entre los procesos que estan ejecutandose hay alguno que tenga mi mismo nombre entonces cierro esta instancia.
  4. if (Process.GetProcessesByName("Autocierre").Length > 1)
  5. Close();
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement