VB.NET Q

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frane Roje

    #1

    VB.NET Q

    I am using VB.NET 2002, and I'm having problems finding a replacement for
    winsock control form VB6.0. Is there a similar control in VB.NEt and how
    it's called. I actualy need to write a small chat which I have done
    previously in vb6.0 in vb.NET
    TIA

    --

    ---------------------------
    Time to get it done!

    Remove (d*elete*) to reply


  • Chad Z. Hower aka Kudzu

    #2
    Re: VB.NET Q

    "Frane Roje" <frane.roje(d*e lete*)@st.hinet .hr> wrote in news:buk6t5$4c7 $1
    @ls219.htnet.hr :[color=blue]
    > I am using VB.NET 2002, and I'm having problems finding a replacement for
    > winsock control form VB6.0. Is there a similar control in VB.NEt and how
    > it's called. I actualy need to write a small chat which I have done
    > previously in vb6.0 in vb.NET[/color]



    Here's some sample VB code for it:

    Imports Indy.Sockets.Id TCPClient
    Module Module1

    Sub Main()
    With New TIdTCPClient
    .Host = "msnews.microso ft.com"
    .Port = 119
    .Connect()
    Console.WriteLi ne("Connected." )
    Console.WriteLi ne(.IOHandler.R eadLn)
    .IOHandler.Writ eLn("Quit")
    Console.WriteLi ne(.IOHandler.R eadLn)
    .Disconnect()
    Console.WriteLi ne("Disconnecte d.")
    End With
    Console.WriteLi ne("Press Enter")
    Console.ReadLin e()
    End Sub

    End Module


    --
    Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    "Programmin g is an art form that fights back"


    ELKNews - Get your free copy at http://www.atozedsoftware.com

    Comment

    • Jan Tielens

      #3
      Re: VB.NET Q

      You can also use the default .NET classes:


      --
      Greetz

      Jan Tielens
      _______________ _______________ __
      Read my weblog: http://weblogs.asp.net/jan


      "Chad Z. Hower aka Kudzu" <cpub@hower.org > wrote in message
      news:Xns947799A 86287cpub@127.0 .0.1...[color=blue]
      > "Frane Roje" <frane.roje(d*e lete*)@st.hinet .hr> wrote in news:buk6t5$4c7 $1
      > @ls219.htnet.hr :[color=green]
      > > I am using VB.NET 2002, and I'm having problems finding a replacement[/color][/color]
      for[color=blue][color=green]
      > > winsock control form VB6.0. Is there a similar control in VB.NEt and how
      > > it's called. I actualy need to write a small chat which I have done
      > > previously in vb6.0 in vb.NET[/color]
      >
      > http://www.indyproject.org/indy.html
      >
      > Here's some sample VB code for it:
      >
      > Imports Indy.Sockets.Id TCPClient
      > Module Module1
      >
      > Sub Main()
      > With New TIdTCPClient
      > .Host = "msnews.microso ft.com"
      > .Port = 119
      > .Connect()
      > Console.WriteLi ne("Connected." )
      > Console.WriteLi ne(.IOHandler.R eadLn)
      > .IOHandler.Writ eLn("Quit")
      > Console.WriteLi ne(.IOHandler.R eadLn)
      > .Disconnect()
      > Console.WriteLi ne("Disconnecte d.")
      > End With
      > Console.WriteLi ne("Press Enter")
      > Console.ReadLin e()
      > End Sub
      >
      > End Module
      >
      >
      > --
      > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
      > "Programmin g is an art form that fights back"
      >
      >
      > ELKNews - Get your free copy at http://www.atozedsoftware.com
      >[/color]


      Comment

      • Chad Z. Hower aka Kudzu

        #4
        Re: VB.NET Q

        "Jan Tielens" <jan@no.spam.pl ease.leadit.be> wrote in news:O71KcrB4DH A.2304
        @TK2MSFTNGP10.p hx.gbl:[color=blue]
        > You can also use the default .NET classes:
        > http://www.codeproject.com/dotnet/csharpwhiteboard.asp[/color]

        Yes, but its more work and requires more knowledge of sockets. Its a lower
        level API or "abstractio n" layer.


        --
        Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
        "Programmin g is an art form that fights back"


        ELKNews - Get your free copy at http://www.atozedsoftware.com

        Comment

        Working...