Single Instance using Mutex in NET
问题 How to make vb Form a single instance use Mutex. For the developers! Hi, I searched in the net how to make a single instance startup form in VB Net not in c# code. Here is my solution: In the project select "Add class..." Rename the new class in "NativeMethods.vb" and put this code: Add this reference: Imports System.Runtime.InteropServices Public Const HWND_BROADCAST As Integer = &HFFFF Public Shared ReadOnly WM_SHOWME As Integer = RegisterWindowMessage("WM_SHOWME") <DllImport("user32")>