I try to use the Smart Socket code in the VB
.NET 30 Practical Component, Solutions Toolkit.
The code is also available on the Apress web page, chapter 13.
The code works fine, no problem, but I like to transfer the incoming object in the server to a host class, a Windows Form (Form1.vb
) and not just put the text message in a MessageBox.
I tried to listen (in my Form1) to the Receive event that exist in the server class but it won't trig on the incoming message...
How could I change the server class or react on the event to be able to receive the incoming object to the "host" class?