Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 13th, 2005, 02:00 PM
Authorized User
 
Join Date: Mar 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aehb
Default Preventing new instances of the same application

In windows application, while my program is running; I want to prevent any new instances of it to run again, I know I can do that in Visual C++ using hPrevInstance, but here in C# how can I do that? thanks for help.
 
Old May 17th, 2005, 03:06 PM
Authorized User
 
Join Date: Mar 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aehb
Default

Nobody knows??!! It's vital to me, and I tried and searched the MSDN a lot and a lot, but just can't find any help

 
Old May 18th, 2005, 04:19 AM
Registered User
 
Join Date: May 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to somannacg
Default

Check out the link below. This might probably solve your problem.

http://www.codeproject.com/Purgatory...s_Instance.asp

 
Old May 18th, 2005, 01:14 PM
Authorized User
 
Join Date: Mar 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aehb
Default

Many many thanks somannacg, I'll try the method and I hope it works, thanks a lot again :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing repetition with Distinct? Raith SQL Language 2 May 29th, 2007 11:47 AM
Preventing Hotlinking simtrade Classic ASP Professional 0 October 14th, 2005 05:06 PM
Preventing Database Conversion snoopy92211 Access VBA 1 October 1st, 2004 04:11 AM
Preventing Page Caching neeter HTML Code Clinic 3 June 5th, 2003 01:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.