|
-
Feb 13th, 2009, 08:09 AM
#1
Thread Starter
Lively Member
Winsock chat textbox prob.
Hey again,
Couple things I am having probs with and I think I can probably find out a couple on my own but I can't find a solution to this prob.
When My text box fills up, the scroll bar doesnt automatically move with the new incoming text. How do I get it to show the most recent incoming text?
Thanks.
-
Feb 13th, 2009, 08:28 AM
#2
Re: Winsock chat textbox prob.
Something like
Code:
Text1.SelStart = Len(Text1.Text)
Where the cursor will be moved to the last position of the text thereby moving the scrollbar so the last item becomes viewable.
-
Feb 13th, 2009, 08:35 AM
#3
Re: Winsock chat textbox prob.
 Originally Posted by Goaty
When My text box fills up, the scroll bar doesnt automatically move with the new incoming text. How do I get it to show the most recent incoming text?
That is the built in, default, behavior of a standard textbox.
I addition to what dee-u posted, you also might want to add
Code:
Text1.SelStart = Len(Text1.Text)
Text1.SelText = newString
-
Feb 13th, 2009, 05:15 PM
#4
Re: Winsock chat textbox prob.
You can also load lines into a Textbox in reverse order so that the last line entered is at the beginning of the textbox instead of at the bottom. This way the verticle scrollbar always remains at the top. The choise is yours.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|