Valhalla Legends Archive

Programming => General Programming => Topic started by: The_Idiot on May 09, 2003, 10:29 PM

Title: Text Box Scrolling...
Post by: The_Idiot on May 09, 2003, 10:29 PM
If someone knoww the property to make a textbox scroll down... like when there is info that goes beyond the visible object... and when you scroll down, new text causes it to scroll back to the top.
If anyone knows how to make it stay scrolled down with the latest text in vb, it would be cool if you could tell me. it slipped my mind.
Title: Re:Text Box Scrolling...
Post by: iago on May 09, 2003, 11:06 PM
onchange:
text1.selstart = len(text1.text)


Title: Re:Text Box Scrolling...
Post by: Fr0z3N on May 17, 2003, 11:03 AM
there's an ocx you can use but I forget what its called.
Title: Re:Text Box Scrolling...
Post by: Zakath on May 17, 2003, 11:35 AM
Umm...there's absolutely no call to go and include a bulky OCX dependency for something as simple as scrolling a text box.
Title: Re:Text Box Scrolling...
Post by: iago on May 17, 2003, 02:14 PM
Yes, it's a single line of code in the onchange() event, like my code demonstrates :)
Title: Re:Text Box Scrolling...
Post by: Fr0z3N on May 17, 2003, 08:02 PM
 :) iunno im lazy.
Title: Re:Text Box Scrolling...
Post by: Yoni on May 18, 2003, 04:52 AM
Lazy? Sounds like more work is required to maintain the registration, package and delivery of an OCX than to add one line in native VB?