Search Tools Links Login

Screen Docking

This module shows how to dock a form to the screen and reserve screen space so maximized windows can't cover it. All the other code I looked at had a ton of un-needed garbage in it.

Original Author: Bratao


All you need to do is pass the "Dock" function a form, what part of the screen to dock to, and a variable to receive the returned data.

Side Effects

This code reserves screen space the size of your form, depending on where you dock it, this will shift everything else, like maximized windows and all your desktop icons. If, for instance, you make your form height the same as your screen height, all your icons and your task bar will be pushed off the bottom of your screen. Also if you don't call the "UnDock" function when your program closes the space reserved for your program will remain reserved even afrer your program is closed.

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 80 times


Visual Basic 6


Posted: 9/3/2020 3:45:00 PM
Size: 4,279 bytes

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.