Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get textbox to scroll down automatically

Status
Not open for further replies.

AkutaSame

Programmer
Oct 5, 2002
97
US
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
 
Thank you. SelStart (because it moves the current location via bits) was actually my first option. I was thinking perhaps there was another way to do the same job. Thanks for the reply.

Akuta Same
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top