iImage Information

In this instuctable i will show you how to make a simple chat program in visual basic. i will go over what all the code does so you will be learning as you make it, and at the end i will show you how to use it.
Step 1Overview
iImage Information

This program will let you exchange messages between two people on your same network. It may work if your not on the same network but i can't test it now.
You should have Microsoft Visual Basic 6.0, that is what i am using.
Basic programing knowledge is recommended
Lets get started!!!
open visual basic and create a Standard EXE
http://vb.net-informations.com/communications/vb.net_chat_server_program.htm
jeggr.
sckMain.state <> sckClose
sckMain.accept requestid
Please e-mail me with a solution asap as i really like this proggy u made!
de7ox@hotmail.com
Thanks!
sckMain.Accept(e.requestID)
sckMain.Close()
sckMain.Accept(e.requestID)
sckMain.Accept(e.requestID)
proCedure = txtLog.Text & "Connected to: " & sckMain.RemoteHostIP & vbCrLf
proCedure = txtLog.Text
you will need to fix the lines, but this is what I have.
Like chat aplication generally, example: Facebook chat.
Thanks
Error "40020" how come ?"
plese reply ..
:D
I'm paras. I've never tried to run the above program but the way of describing the example is awesome.
This message will appear when entering the code for cmdSend. This is the exact code I typed in
Private Sub cmdSend_Click()
sckMain.SendData("[" & txtName.Text & "]" & txtSend.Text)
txtLog = txtLog.Text & "[" & txtName & "]" & txtSend.Text & vbCrLf
txtSend.Text = ""
End Sub
EVERYTHING is working fine, but I want it so when you're active in the txtSend window, and press Enter/Return, it's the same as clicking Send.
So, when I click enter, it will send the message I've typed in the txtSend box.
Thanks!
Argument not optional
Private Sub CMDSEND_Click()
Me.SCKMAIN.SendData = "(" & Me.TXTNAME.Text & ")" & Me.TXTSEND.Text