Step 7: Using the program/Conclusion

ok now im going to tell you how to use the program

in visual basic click file then make project1.exe save it to your desktop
if there are any errors leave a comment and i will try to help you

now go to where you made the program and double click it twice and two programs should pop up
on one click host and on the other click connect and on the one you clicked host on it should say: Connected to:

now type in a name for both of them and you can send messages between the two

it works on LAN and it might work on WAN but im not sure

leave comments letting me know how i did or if you have questions or if you just feel like it
if you liked it or didn't like it rate it
<p>It only works on 2 users? I tried to connect another pc but it failed</p>
<p>Where is the winsock control in Visual Studio 2013?</p>
<p>I am running my chat application on 3 computers. but they are not connecting. how should I set IP and port address of both server side and client side computers.</p>
<p>thank you!</p>
<p>thank you!</p>
<p>Help me with runtime error &quot;object required&quot; 424 as soon as possible.</p>
<p>please help me with 40020 error..</p>
<p>please help me with 40020 error..</p>
<p>please help me with 40020 error..</p>
<p>this is working very well in the same pc and thanx a lot for that but i've tried to make it work on two but was not able to do so. can you plz tell me the way how to do it?</p>
<p>I think this program will only work in localhost so you need Hamachi to create virtual localhost and connect different computers to each other</p>
<p>maraming salamat</p>
<p>maraming salamat</p>
hi <br>i have error 40020 <br>invalid operation
can u plz let me know how to transfer files instead of text... please... it will b helpful for my project..
I haven't been on here for a while, so sorry i haven't gotten a chance to reply to a lot of you asking questions or having problems, the way i wrote this chat program i believe it only works with the older vb 6.0 the newer versions do not have the winsock control module, i am not sure how to use it either, i know its possible though
I can seem to find the &quot;Microsoft WinSock&quot; in Visual Basic 2012, please resond with a way to find it. <br> <br>thank you
every thing should be done but finally have a runtime error as &quot;object required 424&quot;
its good but runtime error &quot;object required&quot; 424
its good but error object required <br>
I tried your code and it works fine so thank you for it. <br> <br>I want to perform following task in your program :- <br>1)Group chat <br>2)Add smilies <br>3)Sending files <br> <br>Please note that i don't want to make more changes <br> <br>I use richtextbox in my program. <br> <br>I request you to upload pdf to perform above task
I am still having trouble with the sckMain.GetData(Data, vbString) line, do you have any suggestions. I fixed the rest of the errors myself, but have no clue with this one.
when i click host and then connect runtime error 40020 occurrs how i can overcome this problem
thank you now i already know it... <br>
when i click host and then connect runtime error 40020 occurrs how i can overcome this problem
when i click host and then connect runtime error 40020 occurrs how i can overcome this problem
thank you <br>
operator '&amp;' is not defined for types 'string' and 'system.windows.forms.textbox' <br> <br>i am facing this problem in vb.net 2008 <br> <br>pls help me
For the send command we get wrong protocol or connection state for the requested transaction,n for other commands v get a runtime error-424 object required..and no 2 forms appear here;pls help me in this...
i can't download the tut pdf!!
there is this word in front = &quot;Run-Time Error '40006';
I can't when i click &quot;Send&quot; button it give this message = &quot;Wrong Protocol Or Connection State For The Requested Transaction Or Request&quot; can you fix it?
A simple VB.NET chat program with source code <br> <br>http://vb.net-informations.com/communications/vb.net_chat_server_program.htm <br> <br>jeggr. <br>
is it working with at least 3 computers?
Hi, i am coding in VB2008, it worked so far but this part doesn't work @ all for me :<br/><br/> sckMain.state &lt;&gt; sckClose<br/><hr/><br/>sckMain.accept requestid<br/><hr/><br/>Please e-mail me with a solution asap as i really like this proggy u made! <br/>de7ox@hotmail.com <br/>Thanks!<br/>
I created a chat program without winsock and its works
the correct code is:If sckMain.CtlState &lt;&gt; 0 Then<br> <br> sckMain.Accept(e.requestID)
how is it possible can you explain
How did you do it?
Dim proCedure As String<br> sckMain.Close()<br> sckMain.Accept(e.requestID)<br> sckMain.Accept(e.requestID)<br> proCedure = txtLog.Text &amp; &quot;Connected to: &quot; &amp; sckMain.RemoteHostIP &amp; vbCrLf<br> proCedure = txtLog.Text<br>you will need to fix the lines, but this is what I have.
Winsock1.Close() Winsock1.Accept(e.requestID)
i don't know how to get this program to work with VB2008 you need to make changes to the code, sorry
How to make the message sent to ListBox if use ENTER BUTTON on Keyboard?<br><br>Like chat aplication generally, example: Facebook chat.<br><br>Thanks
Hai I tried to connect the chat(program which is developed in vb 6) with another system on the LAN. i am finding it hard to do so.kindly help me.
Sir , <br>Error &quot;40020&quot; how come ?&quot;<br>plese reply ..<br>:D
mr twenglish when i run the program RUN&nbsp;TIME&nbsp;ERROR Occurs and says it Requires an Object how can i fix that?..pls reply until tommorow because im rushing our project tnx..pls teach me how to fix that problem..tnx again..<br /> <br />
Successfull.. tnx
you need to make sure you renamed all the objects correctly<br />
hi sir twenglish1,<br><br>sir i try to run the program on one computer seem it is working right...<br>but when i used 2 pc and with same ip address but i could not connect to the other pc or communicate and it display a run time error '40006' wrong protocol or connection state for the requested transaction or request.....<br>hope sir you will reply as soon as possible..... thank you alot :)

About This Instructable


38 favorites


More by twenglish1: How to make a simple chat program in visual basic using the Microsoft Winsock Control How to Install and Boot Damn Small Linux on a USB Flash Drive
Add instructable to: