|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
How to eliminate the Alt+F4 keystorke
I have a logon screen for my program. I have taken the controls off so that a person must enter user name and password information to gain access to the program. However, if you select Alt+F4 the validation screen disappears and the program runs. Any ideas?
Thanks, |
|
#2
|
|||
|
|||
|
You could put a check that a valid password was entered before you allow your program to proceed.
Another option is to look at the query unload event for the password form where you can determine what is causing the form to unload. |
|
#3
|
|||
|
|||
|
eliminating Alt+F4
Doug,
I already have a table that will validate the user. If an improper name is inputed the program exits fine. Where is the Form_unload query found? |
|
#4
|
|||
|
|||
|
When someone hits alt-f4 the login form is merely closed rather than validating any user. Assuming the form is a modal dialog, can't you just have your form set some global variable like loginOK, and test this variable after the login form closes?
If you are in the code for the form, look at the Form events to find the query_unload event |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > How to eliminate the Alt+F4 keystorke |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|