FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

another VB problem.

 


kawkazEE
i have a form that has a property set to maximize. what i want is that is to disable the alt+f4 so that the form will not be close and disable the start key on the keyboard to avoid showing the taskbar so that they cant minimize the form.

if anybody knows how to do this, please help... Wink Wink Wink
Spyware
Code:
Option Explicit

Private Sub Command1_Click()
    Unload Me
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, _
    UnloadMode As Integer)
    If UnloadMode = vbFormControlMenu Then
        Cancel = True
    End If
End Sub



Should do the trick. Googled it Razz
Teddy1
But on the command1_Click that closes the form, Which this person doesn't need as they're making a "lock" program. Smile But the code he did just post stops the form from being unloaded. It won't stop alt+f4 etc....
kawkazEE
so how do i solve the problem?
andy26
Google it. im currently at college doing a programing course i will ask my tutor tomorro if he knows a code that will solve your problem mate.
us54eva
Googled it
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.