Results 1 to 3 of 3

Thread: VB.Net Console Winsock Event Problem

  1. #1

    Thread Starter
    New Member Etsho's Avatar
    Join Date
    Apr 2011
    Posts
    10

    Question 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.


  2. #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.

  3. #3

    Thread Starter
    New Member Etsho's Avatar
    Join Date
    Apr 2011
    Posts
    10

    Re: VB.Net Console Winsock Event Problem

    Quote Originally Posted by formlesstree4 View Post
    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
  •  



Click Here to Expand Forum to Full Width