Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / June 2005

Tip: Looking for answers? Try searching our database.

Asynchronous calls and GUI

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
leodippolito@gmail.com - 15 Jun 2005 19:26 GMT
Hello,

I have this:

WinForms -> Business Layer -> Proxy Layer
(host A)

Remote Data Layer
(host B)

If I make an asynchronous call in the Proxy Layer, how can I update the

Windows form in the call back?

They are in different layers. The proxy object might not exist when the

remote method returns.

How this should be done?

Leonardo
leodippolito@gmail.com - 16 Jun 2005 00:02 GMT
AlexS - 21 Jun 2005 23:34 GMT
You can pass event handler from GUI to proxy class.
You can invoke static event handler / delegate.
Just check if you are on UI thread or not.
When remote method returns some object must exist to accept result, right?
Pass your handler there.

HTH
Alex

> Hello,
>
[quoted text clipped - 17 lines]
>
> Leonardo

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.