By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,872 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,872 IT Pros & Developers. It's quick & easy.

VB.NET Q

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Frane Roje" <frane.roje(d*elete*)@st.hinet.hr> wrote in news:buk6t5$4c7$1
@ls219.htnet.hr:
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


http://www.indyproject.org/indy.html

Here's some sample VB code for it:

Imports Indy.Sockets.IdTCPClient
Module Module1

Sub Main()
With New TIdTCPClient
.Host = "msnews.microsoft.com"
.Port = 119
.Connect()
Console.WriteLine("Connected.")
Console.WriteLine(.IOHandler.ReadLn)
.IOHandler.WriteLn("Quit")
Console.WriteLine(.IOHandler.ReadLn)
.Disconnect()
Console.WriteLine("Disconnected.")
End With
Console.WriteLine("Press Enter")
Console.ReadLine()
End Sub

End Module
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Jul 21 '05 #2

P: n/a
You can also use the default .NET classes:
http://www.codeproject.com/dotnet/csharpwhiteboard.asp

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn*****************@127.0.0.1...
"Frane Roje" <frane.roje(d*elete*)@st.hinet.hr> wrote in news:buk6t5$4c7$1
@ls219.htnet.hr:
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


http://www.indyproject.org/indy.html

Here's some sample VB code for it:

Imports Indy.Sockets.IdTCPClient
Module Module1

Sub Main()
With New TIdTCPClient
.Host = "msnews.microsoft.com"
.Port = 119
.Connect()
Console.WriteLine("Connected.")
Console.WriteLine(.IOHandler.ReadLn)
.IOHandler.WriteLn("Quit")
Console.WriteLine(.IOHandler.ReadLn)
.Disconnect()
Console.WriteLine("Disconnected.")
End With
Console.WriteLine("Press Enter")
Console.ReadLine()
End Sub

End Module
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Jul 21 '05 #3

P: n/a
"Jan Tielens" <ja*@no.spam.please.leadit.be> wrote in news:O71KcrB4DHA.2304
@TK2MSFTNGP10.phx.gbl:
You can also use the default .NET classes:
http://www.codeproject.com/dotnet/csharpwhiteboard.asp


Yes, but its more work and requires more knowledge of sockets. Its a lower
level API or "abstraction" layer.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.