by SoftwareMaker (2 Submissions)
Category: Coding Standards
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
This simple snippet was requested by a fellow developer and I decide to post it here. It scrolls a form both horizontally and vertically. Therefore it is great for projects where run-time added controls can only be seen partially. The scrollbars will enable users to scroll to see the full view of run-time added controls.
The base codes for this snippet was given to me by Megatron (Dont know his real name) I furthur tweak it to enable the controls to be able to scrolled both ways. Please DONT vote for it. Comments will be nice. Thank You
Inputs
It is in the Project
Assumes
Sometimes, when a form's dimensions are fixed and runtime added controls can only be seen partially. The user will need to view scrollbars to scroll to see the contents of the controls. This code teaches how to scroll the form with the scrollbars
Code Returns
Nothing
Download Scroll a Form (2 KB)