Pro VB 6For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
simple solution: a vertical scrollbar at the right of a Multiline TextBox
(with no scrollbars) and at the scroll event read how many lines in the file
that fit in the textbox, starting from the relative position of the scrollbar.
This implies that you have to know in advance how many lines there are in the file.
If you do not know (as I do not either) instead of the scrollbar I put two
buttons (previous page and next page) that I use to navigate in the file. You
cannot go to an exact position of the file but, it works (at least in my case)