I have another program executable which I have added as a reference in my C# file. Right now I'm currently transitioning to that program by using it's namespace followed by the first class to instantiate a object, then I am simply just showing that instance, i.e:
// Instantiate next screen using the namespace and accessing the first class
myProg.MainWindow myProgInst = new myProg.MainWindow();
// Call myProg
myProgInst.ShowDialog();
My question is, instead of opening a new window - is there a way I can actually send the instance of memory from myProg
to the program calling it so that the elements of the object will just transition to the window of the program calling it? Essentially I am trying to eliminate the opening of a new window if I can just throw the other programs information into the one calling it. Maybe you can't do this, just thought I'd ask.
Thanks in advance