954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Using Winsock Control in WPF

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!

imolorhe
Junior Poster in Training
55 posts since Nov 2009
Reputation Points: 4
Solved Threads: 2
 

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
jdsurgeon
Newbie Poster
13 posts since Sep 2010
Reputation Points: 10
Solved Threads: 4
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: