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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahesh ChandPosted Jan 17, 2007, 9:20 AM
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.