by Syed Atif Ali (4 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(7 Votes)

This code shows you how to do docking or snapping (however you may like to call it). It has two docking styles -- one is with a timer and the other one is just a normal one. You can dock one form with the other, and you can also dock, any of the forms, with the screen ends.
Inputs
Just see it in the code.
Assumes
OK. The forms dock to the screen ends and to each other. Simple?
All you need to know are mathematical skills (just a tiny bit) and imagination.
Code Returns
Docked windows. Duh!
Side Effects
With the timer, the docking looks crappy.
API DeclarationsNONE.
Download Docking (5 KB)