How to Make a Chat Room in Visual Basic Express

Written by jaime avelar

Having the knowledge of how to create a chat room using Microsoft Visual Basic Express can save you time when you need to create a chat room application. Visual Basic Express is available for free to anyone interested in creating applications using VB.NET. A chat room involves two applications, the server and the client. The server handles all the client connections, and the client application connects users to the server room to send messages.

Start Microsoft Visual Basic Express, and then click "New Project." On the left pane of your screen, select "Console Application." Click "OK."

Press "Ctrl" + "A," and then press "Delete." Copy and paste the following code into your "Module1.vb" to create the server program:

Imports System.Net.Sockets

Imports System.Text

Module Module1

End Module

Start Microsoft Visual Basic Express, and then click "New Project." On the left pane of your screen, select "Windows Forms Application." Click "OK." Click the "Toolbox" pane, and then double-click "TextBox" to add a new text box. Add two more text boxes. Add two buttons from the "Toolbox" menu.

Double-click the form, and then Press "Ctrl" + "A." Press "Delete." Copy and paste the following code into your "Form1.vb" module to create the client program:

Imports System.Net.Sockets

Imports System.Text

Public Class Form1

End Class

Run the server program first by pressing "F5", and then run the client program. Type your name in "Textbox3" and click "Button2" to connect to the server. Type a message in "TextBox2," and then click "Button1" to send a message.

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.