0

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!

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by jdsurgeon
0

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

Edited by jdsurgeon: forgot some vital information

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.