How can ishow Form in process1 from Form in process2 ?

Posted by Al0NE on Stack Overflow See other posts from Stack Overflow or by Al0NE
Published on 2010-03-24T15:31:22Z Indexed on 2010/03/24 15:33 UTC
Read the original article Hit count: 227

Filed under:
|
|

Hi I'm trying to show hidden form in process1 from another one was called by :

Process.Start(@"F:\MyOtherFormPath\MyOtherForm.exe",this.Handle.ToInt32());

As you can see i passed the handle number of the hidden form ,which i'm calling the "MyOtherForm" from, and i used this number to get a handle and show the hidden form from my "MyOtherForm" like this :

Form newFrm = Form.FromHandle(new IntPtr(long.Parse(handleNumberOfMyHiddenForm)));
newFrm.show();

But it didn't work, any way to do this .

P.S: it didn't throw any exception .

thanx in advanced ..

© Stack Overflow or respective owner

Related posts about c#

Related posts about forms