Possible Duplicate:
Embedding an external executable inside a C# program
i have 2 projects which names are login and ado.net projects and i have their .exe
scenario one
lets say that i only have the .exe file of login project not the code and If i have embedded login.exe in my ado.net project.
Question 1 : when I press the button (which is in login.exe file) I want to close that login.exe and open my ado.net project form... How can I do it ?
Question 2 : How can i understand which button is pressed if i have lets say 3 buttons in my login.exe screen ?
scenario two
Question 1 : what if this time i have the "ado.net.exe" (not the codes only the exe) which is taking data from sql server so i embedded it into the login project. How can i see the data (data shows when ado.net.exe is run) when i embed the ado.net.exe into my login project?
( by the way i managed to add the ado.net.exe into my login project but no data shows but it shows when i run the ado.net.exe file separately)
thanks