-
I want to make a chat room for networked computers in my school. It would be quite simple with an label at the top and an text box at the bottom. There will be command button so when it is clicked it will carry out,text1.text=label1.capton.
I can only get one text boxs text into the label and if I try again the one before goes.
Also is there somthing I should do when making the program I made will work on a network.
As you have noticed I am a newbie, thanx for your time
Michael Baynham
-
I sent you my chat program by mail.
The code could be a bit weird because it's not a demo project, it's just coded for ME ;)
------------------
[email protected]
...
Every program can be reduced to one instruction which doesn't work.
-
first
the reason you lose the comment before is because you reset the caption. Do this:
label1.caption = label1.caption & chr(13) & chr(10) & text1.text
That would take the current caption of the label, add a carraige return and line feed and then add the text of text1.
What I would do is put a count so after like 10 lines it clears the lines before it. Or put it in a scrolling label or text box that is multilined/disabled so that they can still view the previous text.
I'm not sure about teh networked app.
-
Thank you a lot for your time, fox and net surfer. You have helped a lot.
Fox please could you check your e-mail
Thanx a lot
Michael
-
Check out the help for the winsock control (Microsoft Winsock Control 6.0 in the Components list) in VB. It lets you send messages over networks. I have a very simple version of a chat prog if you want to see it.
Hope that helps!
~seaweed