|
-
Nov 4th, 2011, 10:44 AM
#1
Thread Starter
New Member
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.
-
Nov 4th, 2011, 05:48 PM
#2
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.
-
Nov 4th, 2011, 05:51 PM
#3
Thread Starter
New Member
Re: VB.Net Console Winsock Event Problem
 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 ?!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|