Hi, I have a problem in VB6.
I am trying to make a small VB application which allows two or more users to chat.
I am displaying the text conversation in a textbox, with a vertical scrollbar.
The newest text is added onto the bottom of the existing text, but the scrollbar always returns to the top when updating the field, which is not handy as the user has to continously scroll down to read the newest text.
I am looking for a way to set the position of the scrollbar to the bottom, to remove this problem.
I have found that it's possible to set the position of a standalone scrollbar using 'VScrollBar.Value', but this doesn't seem possible on a textbox with combined scrollbar, all I can find is 'Text1.ScrollBars' which only seems to let me set Horiz/Vert/Both Scrollbars.
The only other idea I had was to set the cursor position in the text manualy to the last line somewhere, but I don't know how I would calculate how many characters are present so I know what value to set the cursor at. Although this might work I would prefer the first idea as it seems much more straight forward.
Also, I am transferring the text between machines using a plain text file, is there a better way of transferring data between machines across a network which isn't too compilcated, as I'm not very advanced!
Can anyone help?
Thanks, Ben.