Hey all,

Is it possible in C# to make it so that when a program is run, your program opens up with it? For example, say I went to double click the "Firefox" icon, would it be possible to have my program also open up with it? Basically what I want is to link my program with the execution of another.

Would I have to edit registry keys? Any ideas would be greatly appreciated!

Thank you all.

Can you be more specific about your problem, i mean which application you want to open with another application.......?

Thanks for the response.

I basically want to be able to "link" (would be an appropriate word) two programs together. One program being mine (C# coded), and the other being ANY program that I may start. It really does not matter which program it is, I am just curious if this is possible.

So to sum it up, I want my program to startup when I open another program, that program being determined by me.

Install a service and watch for new processes starting up. Unfortunately the behavior you're describing is commonly used by spyware/malware programs so this will probably set off antivirus apps if you try to natively "link" the programs in the registry, but it is possible (and i wont answer any questions regarding how they do it). Is this a plugin to other applications?

Yikes,

I am not making any form of virus, but I can see what you are getting at. It is not a plugin to anything else, I would just like to be able to accomplish starting my program with the program of my choice, for whatever reason there may be. I think it would be a very cool little feature to have. One could think of it in the ways of being a "plugin", but not based off one single program, but ANY program I was to tell mine to look for.

Thanks for your reply and time.

Thank you for your responses, it's been awhile since I had a chance to check back. I am very new to services, infact, extremely new. Would you by chance be able to point me in the right direction as to where I can get started? I did a google search but haven't found anything worth while. Nothing really that was helpful.

Thanks for all your help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.