[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Re: Remoting and Events with VB.NET

Paulsharp

8/30/2004 9:36:00 AM

The only thing done wrong , from what I've seen, is that the event handler (objTestObject_RemoteEvent) must not be placed at the Client Side. Instead you must declare a new class that is MBRO or Serializable in the TestRemotingLib, and there you can place the event handler.
The reason is that both server and client must have access to this class.

Then after getting the event in there, you might wanna forward it to some client class where you want to implement the code for the handling. This you can easily do with a normal event.

Good luck!

Paul

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/... Our newsgroup engine supports Post Alerts, Ratings, and Searching.