Control Resuize with Anchors

Category:
Forms and Controls
Type:
Modules
Difficulty:
Intermediate
Author:
Tamas Balogh

Version Compatibility: Visual Basic 6

More information:
I think this is the simplest and easiest auto control resizer man can create

You can resize automatically your controls on the form by using the control's Tag parameter. I created this module to give a quick control resizing ability to smaller programs. You do not have to fill any collection, only to give a parameter in the Tag property of the control.

Note: This is not a proportional resizer program, the idea is very similar to .NET's anchor approach. You can fix (anchor) the distance of a control to one, two, three or all sides of the parent control, of the form. In same cases, like a database application this solution gives a better user experience than a proportional approach.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download autoresize.zip