VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Screen Docking

by Bratao (1 Submission)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (18 Votes)

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.

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.

Rate Screen Docking

Download Screen Docking

Download Screen Docking (4 KB)

Screen Docking Comments

No comments have been posted about Screen Docking. Why not be the first to post a comment about Screen Docking.

Post your comment

Subject:
Message:
0/1000 characters