Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Programming Talk / VB / VB.net - How do I add WinSock's to VB .NET?

Author
Message
The Lone Programmer
22
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 28th Jan 2005 11:09
Hey,
I just upgraded from Visual Basic 6 to Visual Basic 2003 .NET

I have been searching around and experimenting and I can not figure out how to add a Winsock so I can work with making an online program such as a chat program.

Since I am some what talented, all I would like to know is what to add. If someone could list the steps required to get a Winsock tool into my toolbox then please help me out.

Thanks,
The Lone Programmer

Mess With The Best, Die Like The Rest.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 28th Jan 2005 12:05 Edited at: 28th Jan 2005 12:08
you dont need the winsock active x control, use the Sockets Namespace and look for tcpClient or Socket objects. I've done a ton of tcp/ip programming in vb.net so if you need help just post. If you need a server to use as a development tool for your client, download the free demo of EZ_Serv by clicking my sig link below.

MicroMan
21
Years of Service
User Offline
Joined: 19th Aug 2003
Location: Stockholm, Sweden
Posted: 28th Jan 2005 17:33
You CAN add ActiveX controls to VB.Net. I don't have Visual Studio on the computer I'm using right now, but if I remember correctly there's a menu item called 'Add reference' on the Projects menu. Click on that, and select COM from the dialog appears. If your license for Winsock is valid, it should be includable.

But then, as CattleRustler said, the question is whether you should. You have the same functionality in the System socket namespace.

-----
They SAID that given enough time a million monkeys with typewriters could recreate the collected works of William Shakespeare... Internet sure proved them wrong.
-----
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 28th Jan 2005 21:08
way more functionality using Sockets Namespace

Login to post a reply

Server time is: 2025-06-10 05:47:09
Your offset time is: 2025-06-10 05:47:09