Alex Maghen
8/18/2004 11:21:00 PM
I have created a nice little Client-Server test using .Net Remoting. I've
created a separate Interface representing the Remoted (exposed) class from
the Server application. The Server Application is a Windows Application
created in C#.
Everything's working fine with the Client App accessing the ServerClass. But
here's where I get really confused: Let's say I want logic going in inside a
method of my ServerClass to be ablse to access the server application's main
Form or something like that. What I don't understand is, how can my
ServerObject get a reference to the Forms, etc., that make up the running
Windows Server Application?
In my Main(), I'm doing the whole...
RemotingConfiguration.RegisterWellKnownServiceType();
and then I'm doing...
Application.Run(new MainForm);
But now I'm in the loop of the MainForm and calls to my ServerObject don't
know how to GET to my MainForm instance.
Any help will be MUCH appreciated.
Thanks!
Alex