|
-
Aug 11th, 2000, 04:32 PM
#1
Thread Starter
New Member
Hello, I worte a simple chat program. What I would like to know is how to send a command to the other person's chat window so after the text is sent the cursor goes to the next line. Example:
<text to be sent><move cursor to next line>
Any info would be greatly appreciated 
-
Aug 15th, 2000, 11:55 AM
#2
Addicted Member
I have no answer but ...
I have no answer but I would sure appreciate taking a gander at the coding for your simple chat proggie.
Think you'll post here for all to learn and enjoy?
Your peers thank you for your benevolence,
Daniel christie
-
Aug 15th, 2000, 12:28 PM
#3
Frenzied Member
wherever you are making the information being shown, you need to make it skip a line, right? Well vbcrlf does this. That little command works in message boxs too. So your code to print out the information should look like this...
[code]
txtShow.text = textshow.text & name & bodymsg & vbcrlf
'This code adds the name(if it were stored in a variable called
'name) and bodymsg(thats the body) and then it ends the line
'Good luck!
'P.S. Don't forget to put the Locked property to True!
'I always did that
-
Aug 15th, 2000, 12:28 PM
#4
Frenzied Member
wherever you are making the information being shown, you need to make it skip a line, right? Well vbcrlf does this. That little command works in message boxs too. So your code to print out the information should look like this...
Code:
txtShow.text = textshow.text & name & bodymsg & vbcrlf
'This code adds the name(if it were stored in a variable called
'name) and bodymsg(thats the body) and then it ends the line
'Good luck!
'P.S. Don't forget to put the Locked property to True!
'I always did that ;)
-
Aug 16th, 2000, 04:12 PM
#5
Member
if you want to move the cursor to the end of the textbox and so the user can see the text you just put there then:
Text1.SelStart=Len(Text1)
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
|