embedding an exe into c#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/798655/embedding-an-external-executable-inside-a-c-sharp-program">Embedding an external executable inside a C# program</a>  </p>
</blockquote>



<p>i have 2 projects which names are login and ado.net projects
and i have their .exe</p>

<p>scenario one</p>

<p>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.</p>

<p>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 ?</p>

<p>Question 2 : How can i understand which button is pressed if i have lets say 3 buttons in my login.exe screen ?</p>

<p>scenario two</p>

<p>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?</p>

<p>( 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)</p>

<p>thanks</p>
