Making sure only one instance runs at any time

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

Hey guys

What is the best way in c# to ensure that once your app is running, if the
user then clicks to run it again it notifies them it is already running, or
alternatively, brings the running version to focus and does not load a new
instance?

Thanks
 
Is that complete code in the guys question? Hard to understand how to do
something for the first person by looking at someone elses attempt that
doesnt work with some explaining why it doesnt work.....can anyone else
help?
 
This has been asked a lot. Google for "single instance application c#". That
should turn up a few solutions in Groups
 
Thanks guys,

I did try google but i must have been using wrong serach terms.

D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top