GrenadeFX Posted January 20, 2005 Posted January 20, 2005 ok im fearly new to vb.net i used to use vb6 ok here is my problem : in vb6 if you want you textbox to scoll down for you, you just put: txtOutput.Sel = Len(txtOutput.text) but how do i do it in vb.net? i tried this: txtOutput.selectionStart = Len(txtOutput.text.length) ' I also tried Len(txtOutput.text) so this is my problem oh yeh and my textbox keep going to the top of teh box when any text is entered Please help i relly need it for my irc client PS (last one, i promise) how can i populate a userlist box for an irc channel? thanx i really need to know how to fix up that damn textbox Quote
IngisKahn Posted January 20, 2005 Posted January 20, 2005 If you'd look throu the functions that the text box exposes you'd see a function called ScrollToCaret(). Looks promising. Quote "Who is John Galt?"
coldfusion244 Posted January 20, 2005 Posted January 20, 2005 Use this, [CS] textbox.SelectionStart = textbox.Text.Length; textbox.ScrollToCaret(); [/CS] Quote -Sean
GrenadeFX Posted January 20, 2005 Author Posted January 20, 2005 wow thanx a lot people this forum rules the net!!! Quote
Kershaad Posted January 22, 2005 Posted January 22, 2005 i have had a similar problem to this, thanks. btw - do u know if this works for Rich Text Box's? if not, what would i need to change? thanks in advance. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.