|
-
Oct 14th, 2001, 01:34 PM
#1
Thread Starter
Hyperactive Member
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++
-
Oct 14th, 2001, 01:38 PM
#2
New Member
You could use this method:
Code:
Text1.SelStart = Len(Text1.Text)
Text1.SelText = "Hello"
This preserves any text that was already in the textbox.
-
Oct 14th, 2001, 01:43 PM
#3
Thread Starter
Hyperactive Member
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++
-
Oct 14th, 2001, 01:44 PM
#4
PowerPoster
insert a vbCrLf
VB Code:
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|