Hi, Im new to this forum, and new to scripting in general.
Im an ICT Technician for a high school and i am designing a Form in visual basic 2005. The intended purpose of the Form, is to prevent student users logging on to their area, without accepting the Acceptable Use Policy which comes up on screen.
The form, runs maximized, in full screen mode and is constantly in focus, above all other programs. So Basically, until the form is closed, the users PC is unusable.
I have removed the control bar, and right click, so you can only close the form by clicking one of the buttons or by Alt - F4. Task manager is disabled on student accounts, so they cant end the process.
What i am trying to do, is prevent users alt - f4 "ing" the program, but still allow it to close, if you click the accept button.
It has two buttons: "I accept" and "I disagree". the accept button closes the form so the user can use the PC, whereas, the disagree button logs the student off.
What i need, is when you click alt- f4, a message box appears saying you cannot close it. Then all you can do, is accept it or decline it.
although a noob at this, i have managed to do certain things by myself. i can block alt- f4, but it also blocks the ok button.
i can also get a message box 2 appear, but it comes up, no matter how u try to close the form.
If someone can help me with this, i would be extremely greatfull as if i can get it working perfectly, it will be used across the burough.
If someone can give me the precise script commands, ill put a thankyou to them into the program.
As i said, i am a rather big noob at this, as hardware is more my side. so if u could answer me as a noob (but not patronising) it would be appreciated.
thanks in advance
Gregg Cooper CCNA (FreelanceX)