Please,
How do I properly add a Winsock Control in WPF for purpose of LAN applications? I tried adding the Winsock control dynamically but then the event functions are not available then.

Note: Using WindowsFormHost does not show in my WPF application. Help please!

You have to create the events for the control.
here is an example from one of my outlook addins.

the addressOF parameter can point to a sub procedure or function that can handle the event.

Dim mail As Outlook.MailItem

 AddHandler (mail.BeforeAttachmentAdd), AddressOf mail_BeforeAttachmentAdd
 AddHandler (mail.AttachmentAdd), AddressOf mail_AttachmentAdd
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.