Results 1 to 5 of 5

Thread: Simple winsock question

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    7

    Unhappy

    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


  2. #2
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    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

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    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

  4. #4
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    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 ;)

  5. #5
    Member FirePoweR's Avatar
    Join Date
    Apr 1999
    Posts
    32
    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
  •  



Click Here to Expand Forum to Full Width