FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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
Related topics
an annoying problem - PLEASE help
Locking the posts?
Can't enter my Gmail Account! Help and I send you invatation
Yet another Heart problem...
Machinegun Ownership
C++ int to char and char to int
Google-Romance - New google dating service!
Php is not reporting errors
Fonts in my browser are too large...
Need Help With CSS
Malaysia/Thialand/Singapore Overwhelmed by Indonesia's Haze
very interesting virus
Another PHPBB problem
Server 2 Timing Out
Reply to topic    Frihost Forum Index -> Scripting -> Others

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