Scrolling on VB form
Posted on 2006-11-25
I am modifying an existing VB6 program that runs on a specialized type of fieldwork PC. It runs Windows 2000 Pro, but the Windows desktop interface is accessed via a lightpen and a small virtual keyboard. In addition, the physical screen size of the PC is 800 x 600 (though the resolution is higher). Therefore, the application has rather small windows and frequently displays a wizard-like interface.
All that having been said, I am constructing a rather complex form to add to the application. It is an electronic version of a hardcopy form that is used in the client's office. They have requested that the electronic version exactly mimic the hardcopy version, to ensure no learning curve for technicians in the field.
All well and good so far - but their hardcopy form has 2 pages to it. I've made it mostly through the first page, adding labels and textboxes where necessary. But, VB6 is not allowing me to vertically resize the form any larger than 15360 twips. NOTE: Horizontal size is not excessive, therefore not a problem.
I have already added a scroll bar to the form, to enable the technicians to see the whole thing but not all at once - keeping the form in a manageable desktop area is vital.
How can I size the form to a certain size, focused at the top, when loaded, thereby forcing the user to scroll down to see the rest of the form?
Why is Visual Studio not allowing me to resize it any taller at design time?
If this form MUST be split into more forms, what are the best practices for this?