P
Phani
Hi,
I am Developing an WindowsExe UI application Say "WindowsExe1.exe"
which inturn calls a ClassLibrary dll "Test.dll".The Test.dll calls
another WindowsExe UI application say "WindowsExe2.exe".
I have Written Code in Test.dll as
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.ExecuteAssembly("WindowsExe2.exe");
every thing working fine till now..
1)I Had a Exit Button in WindowsExe2.exe UI, Here is the Code for
exit button
private void Exit_Click(object sender, System.EventArgs e)
{
Application.Exit();
}
1)My first problem is when i click exit Button on WindowsExe2.exe
application all the applications(WindowsExe1.exe,WindowsExe2.exe) are
Closing..
But i want to close only WindowsExe2.exe and set the focus back to
WindowsExe1.exe..How can i do that..
2)My second Problem is.. i need to pass Some Data from Test.dll to
WindowsExe2.exe.. while Calling ,..I thought of Passing that data as
command line Args for WindowsExe2.exe ... is it the Right
approach..?(What are all the Best ways doing this) if it is how to
pass command line Args *****any Sample Code Please... ****
3)my third problem is i need to Send data back From WindowsExe2.exe
to Test.dll Before Closing WindowsExe2.exe ... How to do this ...what
are all the Possible approaches for this.. do i need to do Remoting
for this Problem..
Do i need Delegates ...?
one more Note:*****
WindowsExe1.exe is creating several Instances of Test.dll ****
Can any one help me what all the Best solutions for this...
Thanks,
I am Developing an WindowsExe UI application Say "WindowsExe1.exe"
which inturn calls a ClassLibrary dll "Test.dll".The Test.dll calls
another WindowsExe UI application say "WindowsExe2.exe".
I have Written Code in Test.dll as
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.ExecuteAssembly("WindowsExe2.exe");
every thing working fine till now..
1)I Had a Exit Button in WindowsExe2.exe UI, Here is the Code for
exit button
private void Exit_Click(object sender, System.EventArgs e)
{
Application.Exit();
}
1)My first problem is when i click exit Button on WindowsExe2.exe
application all the applications(WindowsExe1.exe,WindowsExe2.exe) are
Closing..
But i want to close only WindowsExe2.exe and set the focus back to
WindowsExe1.exe..How can i do that..
2)My second Problem is.. i need to pass Some Data from Test.dll to
WindowsExe2.exe.. while Calling ,..I thought of Passing that data as
command line Args for WindowsExe2.exe ... is it the Right
approach..?(What are all the Best ways doing this) if it is how to
pass command line Args *****any Sample Code Please... ****
3)my third problem is i need to Send data back From WindowsExe2.exe
to Test.dll Before Closing WindowsExe2.exe ... How to do this ...what
are all the Possible approaches for this.. do i need to do Remoting
for this Problem..
Do i need Delegates ...?
one more Note:*****
WindowsExe1.exe is creating several Instances of Test.dll ****
Can any one help me what all the Best solutions for this...
Thanks,