hello,
how to prevent a dotnet application from having two running instances as at the same time

Please use search - we answered this very recently

One method is to know the name of your application process (System.Diagnostics). Then, in Form_Load() check if your process name exists in the array list of all avaiable processes an if exists, simply close the application -> this.Close(); For further details about doing this, post back and ask.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.