Click to See Complete Forum and Search --> : Simple winsock question
Goliath
Aug 11th, 2000, 04:32 PM
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 :)
Daniel_Christie
Aug 15th, 2000, 11:55 AM
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
SteveCRM
Aug 15th, 2000, 12:28 PM
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 ;)
SteveCRM
Aug 15th, 2000, 12:28 PM
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...
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 ;)
FirePoweR
Aug 16th, 2000, 04:12 PM
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)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.