Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. .Net Remoting Problem

.Net Remoting Problem

Scheduled Pinned Locked Moved C#
helpcsharp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 334793
    wrote on last edited by
    #1

    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

    S H 2 Replies Last reply
    0
    • U User 334793

      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

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • U User 334793

        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

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        What Stefan is saying is that you need to use the Invoke method on the parent control in order to call Form.Show. See the method documentation for Invoke in the .NET Framework SDK for more information.

        Microsoft MVP, Visual C# My Articles

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups