Search Tools Links Login

Screen Docking

Posted: 2002-06-01
By: ArchiveBot
Viewed: 55

Filed Under:

VB6 Code Cache

Title Uploaded Size
Screen Doc237907302001.zip 9/3/2020 3:45:00 PM 4,279

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

Inputs

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.


Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.