Thanks, but that only deals with the program detecting whether it is the first instance or if another one already exists -- I could do that already (although the code above is definitely a lot cleaner than mine was, so thanks for that!)
The real question is how the 2nd instance can pass on its parameters to the 1st instance, so it can handle the file(s) I'm trying to open. Is there some way to trigger an event in the 1st program that passes the info along?
The real question is how the 2nd instance can pass on its parameters to the 1st instance, so it can handle the file(s) I'm trying to open. Is there some way to trigger an event in the 1st program that passes the info along?