We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

No subject

Hi Is there an easy way of ensuring that only a single instance of a windows forms application is running? And preferably if it is already running, raise that instance. The path I was going down was to: 1. before the main window was created, check if the process is already running. 2. get the process id 3. get the window handle for the process id and now I'm not sure how to get that window to be raised to the top. thanks, Brad

1 Reply

Administrator May 30, 2003 01:10 PM UTC

I think your answer lies in this fax somewhere: file:///D:/Offline%20web%20pages/C%23%20Winforms%20teaching/index.html
Loader.
Live Chat Icon For mobile
Up arrow icon