Windows Areo, I think, enabled you to be able to take a window/form and drag it to the top of the screen to make it "full screen" and to drag it to the side to make it "half screen". I have a form with an "Accept" and a "Decline" button on it. When it starts it is maximized at full screen and it covers everything. The Minimize/Maximize buttons are disabled. So is the "X" button for closing the program.

The program I am writing is meant to disable use of the PC until the user agrees to the "rules of use" for the PC which are written on the form.

I am using Vb 2013 and currently the program will be used on Windows 7 or above, but it may get used at some point in time on an old PC using XP or Vista.

My intention is that the user can do NOTHING anywhere in the system, they can't start a program, they can't use the "tab" to switch windows, nothing until they either click "Accept" or "Decline". If they click decline the system is to log them off and restart or shutdown or something like that. If they click accept then the form changes from maximized to normal and it no longer is forced to be the focus or the "topmost" and they can now run other programs and use the PC normally.

The problem I am having is that I can't seem to find a way to disable the Windows "Snap" feature. If I click in the forms title bar and drag the form it will resize to "normal" and will no longer fill the screen. This will let the user do other things and I need to stop that until the user clicks Accept.

How do I disable or 100% prevent a user from doing ANYTHING until they click "Accept" or "Decline"

Thanks to anyone who can suggest a way to disable the "Snap" or prevent the user from doing anything except click one of the two buttons.

Ralph