This may sound like a trivial problem, but I figure I'll try asking anyways as everyone seems to be helpful here. I have written a simple chat program that consists of two applications: a server and a client. The server runs, allowing client applications to log into it. I am not having any issues with that portion. The issue that I seem to be having is this:
When a client sends text to the server, it in turn sends the text to all other clients which displays old messages with the new message attached to the bottom. No problem there. When the text is added to the "chat box," the text is added fine, but the "chat box" always shows the top of the textbox, not the bottom (which makes both server and client users need to scroll down to view new text). Is there a code-around to force the textbox to scroll to its lowest point, thus showing the newest text at the bottom?
I guess if there is no real way to code this, I can always make the newest text add to the top of the box; however I'd like to see if I can do the process in the standard way first.
Thanks for any help,
Akuta Same
When a client sends text to the server, it in turn sends the text to all other clients which displays old messages with the new message attached to the bottom. No problem there. When the text is added to the "chat box," the text is added fine, but the "chat box" always shows the top of the textbox, not the bottom (which makes both server and client users need to scroll down to view new text). Is there a code-around to force the textbox to scroll to its lowest point, thus showing the newest text at the bottom?
I guess if there is no real way to code this, I can always make the newest text add to the top of the box; however I'd like to see if I can do the process in the standard way first.
Thanks for any help,
Akuta Same