Re: How to access an applications form through remoting

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



ZacharyDallas <zacharydallas@xxxxxxxxx> wrote in
news:1194900257.801019.67060@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:

I want to be able to use .Net Remoting in order for a client to call a
remote object on a server, and then have the server update a control
in a form based on that call. From what I can tell, when an object
runs on the server it does not know anything about the application
that it is running inside of and the application knows nothing about
it. This means that the remote object could not access any controls
or data inside the application and the application could not access
any member variable or functions inside the object. Is there a way to
get around this?

Yes, get your form to host a singleton object.

The singleton object can either broadcast events or have a direct reference
to the parent form and call functions on the form.

If you're starting a new project, take a look at WCF - much more flexible
than remoting.
.



Relevant Pages

  • Re: How to access an applications form through remoting
    ... remote object on a server, and then have the server update a control ... This means that the remote object could not access any controls ... The singleton object can either broadcast events or have a direct reference ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Gaining Access to a Windows Apps Forms from its Server Object
    ... Is your remote object a Singleton object? ... The Server Application is a Windows Application ... > Application.Run(new MainForm); ...
    (microsoft.public.dotnet.framework.remoting)
  • How to access an applications form through remoting
    ... I want to be able to use .Net Remoting in order for a client to call a ... remote object on a server, and then have the server update a control ... This means that the remote object could not access any controls ...
    (microsoft.public.dotnet.framework.remoting)
  • How to access an applications form through remoting
    ... I want to be able to use .Net Remoting in order for a client to call a ... remote object on a server, and then have the server update a control ... This means that the remote object could not access any controls ...
    (microsoft.public.dotnet.framework.remoting)
  • Asp.net Important Topics.
    ... ASP.NET server controls contained within the page. ... A custom server control is ... can also perform validation using client script. ... Where does the Web page belong in the .NET Framework class hierarchy? ...
    (microsoft.public.dotnet.framework.aspnet)