Hi All,
i have block of code and i want to execute only onces when we running program 4 first time in C#.net.
Pls give a sol asap,
I hope all understanding my query
Urgent pls help me
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.3K reputationPosted Jan 17, 2007, 4:20 AM EST
I am not sure exactly what you are asking but if you don't want your application to have multiple instances running simultaneously, you can use the Process class to see if the application is already running. If yes, don't launch it.