.Net Remoting Problem
-
i have a problem in the remote method of the object. the problem is that when i call a remote method and inside this remote method i am creating a new window from and use the form.Show() method it is hanged and the form doesn't show up. Any Solution to the problem. Plz Help Urgent
-
i have a problem in the remote method of the object. the problem is that when i call a remote method and inside this remote method i am creating a new window from and use the form.Show() method it is hanged and the form doesn't show up. Any Solution to the problem. Plz Help Urgent
The problem is that your remote method isn't executed by the UI thread of your application. As the
Show
method has to be run in UI thread, you'll need to invoke it. www.troschuetz.de -
i have a problem in the remote method of the object. the problem is that when i call a remote method and inside this remote method i am creating a new window from and use the form.Show() method it is hanged and the form doesn't show up. Any Solution to the problem. Plz Help Urgent
What Stefan is saying is that you need to use the
Invoke
method on the parent control in order to callForm.Show
. See the method documentation forInvoke
in the .NET Framework SDK for more information.Microsoft MVP, Visual C# My Articles