I've got a application where on my menu i've got a option called "Lock"
My form will become disabled and a window form will open where a user has to enter their password correct to unlock the application (this allowing them to walk away and leave it running without locking the computer).
how can i prevent a user from closing this window form?
if they do the form is disabled so safe but pointless and annoying.
i show this form as a lockform.showdialog and after it's closed i do a check so see if the main form is enabled, if it's not I close the main form, again pointless and annoying.
How can I do this better?
My form will become disabled and a window form will open where a user has to enter their password correct to unlock the application (this allowing them to walk away and leave it running without locking the computer).
how can i prevent a user from closing this window form?
if they do the form is disabled so safe but pointless and annoying.
i show this form as a lockform.showdialog and after it's closed i do a check so see if the main form is enabled, if it's not I close the main form, again pointless and annoying.
How can I do this better?