When I double click the winsock control, only one event appeared:
private void axWinsock1_ConnectEvent(object sender, EventArgs e)
How to get a list of all events of Winsock?
I assume you are talking about the visual IDE wizard stuff. double clicking an object will create a handler for the default event. you can get to other events through the properties tab/windows on VS, or you can wire the events yourself in code.
Code:
var foo = new Foo();
foo.AnEvent += DoSomething;
foo.AnEvent -= DoSomething;
Sorry, I just cannot find any events for the winsock control except
private void axWinsock1_ConnectEvent(object sender, EventArgs e)
I tried right click, double click...
That control is not C# "bisic" control.....
axWinsock1.ConnectEvent += new WinsockConnectEventHandler(axWinsock1_ConnectEvent);
this is how you wire a handler to an event. referencing the axWinsock1 object Intellisense should list the members of the object (properties, functions and events). find the events you want and attach the handlers as necessary.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.