Okay so i had this code in my library for some time now.
So i'm going to share with you.
Rate if you like it

VB.net Code:
  1. Imports System.Threading
  2. Public Class Form1
  3.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.         Dim Mutex_Object As Mutex 'We will be working with Mutex
  5.         Mutex_Object = New Mutex(False, "Pervent Twice Open") ' Were you see "Pervent Twice Open" thats were you put the name of your project.
  6.         If Mutex_Object.WaitOne(0, False) = False Then 'lets perform the check
  7.             MessageBox.Show("The same application is opened twice.")
  8.             Application.Exit()
  9.         End If
  10.     End Sub
  11. End Class

P.s
I have no idea were i found this code.