PDA

Click to See Complete Forum and Search --> : Textbox scroll


FMillion
Jan 6th, 2000, 05:19 AM
I am trying to program a very simple chat application. The only problem I have is that whenever the program receives chat text and adds it to the text box that shows the chat, the text box jumps back up to the top of the box. Can I make it stay at the bottom so that new text will be easily visible without scrolling back down to the bottom manually?

(I'm simply resetting the Text property of the textbox, e.g. TextBox1.Text = TextBox1.Text + NewText)

lumin
Jan 6th, 2000, 05:41 AM
this should do the thing.

just place it after your post code.

like this

Private Sub SendMsg_Click()
text1.postdata dadada.. and more code

Text1.SelStart = Len(Text1)
End Sub

got it ?
Hope so :)


-Lumin

lumin
Jan 6th, 2000, 05:42 AM
woho i got promoted to member on the last post :)


YIHAA..

lumin
Jan 6th, 2000, 05:43 AM
woho i got promoted to member on the last post :)


YIHAA..

ravcam
Jan 6th, 2000, 06:08 AM
Lumin do you have to brag? j/k