VB.Net Console Winsock Event Problem
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.
Re: VB.Net Console Winsock Event Problem
Most people here in the .NET section will recommend you stay away from Winsock and use the System.Net namespace.
Re: VB.Net Console Winsock Event Problem
Quote:
Originally Posted by
formlesstree4
Most people here in the .NET section will recommend you stay away from Winsock and use the System.Net namespace.
its ok , but even if it was different control , how can i do an event of a whole control ? in Console ?!