Results 1 to 5 of 5

Thread: Creating a chat room!!!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Wales
    Posts
    12

    Post

    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


  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    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.


  3. #3
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    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.


  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Wales
    Posts
    12

    Post

    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

  5. #5
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Post

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width