Results 1 to 3 of 3

Thread: sockets in vb 2005

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    7

    sockets in vb 2005

    well i am transcoding my vb6 chat... but i dont know how to program the events that was in vb6 for the socket control.... like ConnectionRequest, DataArrival, Close, etc.. now sockets are like variables.. how can i code that events? :O any1 can help-me? sorry for the dumb question.. cant find any tut..

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: sockets in vb 2005

    The 2003 101 Samples from Microsoft contains an example of a client/server chat application using Sockets. See my signature for a link.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Hyperactive Member StreaksAthlete's Avatar
    Join Date
    Sep 2004
    Posts
    348

    Re: sockets in vb 2005

    Try this Sockets class. Just add it to your project and give a reference:
    VB Code:
    1. Public WithEvents Socket As New Sockets
    You can use all of the basic Socket functions: Data Arrival, Connection Request, Close Socket, etc.
    Attached Files Attached Files
    Unity Programs™ - Downloads To Make Your Computer Life Easier - UnityPrograms.com, check it out
    My small company, I need feedback.


    If someone's post was useful, don't forget to Rate It by clicking the Rate This Post link under the avatar.
    If this post has been resolved. Please mark it as Resolved by going through the Thread Tools above and clicking on the Mark Thread Resolved option.
    We ride together, We die together, .NET for life. - Working With Visual Studio.NET 2005

    Application Deployment, General Developer Forum, Visual Basic .NET

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