Results 1 to 4 of 4

Thread: Help with a chatroom

  1. #1

    Thread Starter
    Hyperactive Member dflw's Avatar
    Join Date
    Apr 2001
    Location
    ct, usa
    Posts
    412

    Help with a chatroom

    Hi,

    How do I make incoming text coming from another computer print on the next line of a textbox(leaving the exisiting text in the same spot), and also making text that I type go onto a difeerent line too?????

    like a chatroom

    Jon: Hi
    Jo: Hello
    Jon: bye
    Jo: bye
    Visual Basic 6, HTML, JavaScript, learning C++

  2. #2
    New Member
    Join Date
    Mar 2001
    Location
    The Netherlands
    Posts
    7
    You could use this method:
    Code:
    Text1.SelStart = Len(Text1.Text)
    Text1.SelText = "Hello"
    This preserves any text that was already in the textbox.

  3. #3

    Thread Starter
    Hyperactive Member dflw's Avatar
    Join Date
    Apr 2001
    Location
    ct, usa
    Posts
    412
    thanks

    but is there a way to make the new text go on the next line instead of on the same line???
    Visual Basic 6, HTML, JavaScript, learning C++

  4. #4
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    insert a vbCrLf
    VB Code:
    1. Text1.SelText = vbCrlf & "Hello"
    obviously making sure Multiline is set to True

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