I was working on my vb6 project, and I needed my scrollbar max to reach 40000. Though I can assume that the max was around 32000 since the scrollbar max is an integer. How can I change this?
Thanks,
Kevin
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why do you need to do that? Consider setting the range from 0 to 100, or 0 to 1000 (percentage of your document’s size, basically), and scaling from that to the range that you need.
EDIT: For example, if you have a document with 40,000 lines, set the scrollbar maximum to 100. When you read the value, multiply it by the ratio of the document size over the maximum size of the scrollbar. When the scrollbar thumb is in the middle at 50, you’ll get 50 * (40,000 / 100), or 20,000.
You’ll have to use a
longin VB6.