hello people ,

i have a problem with my console in vb 2010 !

in windows form applications

we can use this event for winsock control:

Code:
 Private Sub Winsock_ConnectionRequest(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ConnectionRequestEvent) Handles Winsock.ConnectionRequest

    End Sub
its the event if the server had a connection request , but i cannot use it in my console application !

so how can i use this event or any event in winsock control !?

i added the component MSWINSCK.OCX then i declared it as the following:
Code:
Public Winsock As New MSWinsockLib.Winsock
Any Solution Guys?

Thanks in advance.