Hi, Im doing a program to block my computer with a login system..
But the only way to close it its alt + f4 (You cant close it by taskmanager.)
How can i disable the alt+ f4?
Hi, Im doing a program to block my computer with a login system..
But the only way to close it its alt + f4 (You cant close it by taskmanager.)
How can i disable the alt+ f4?
Ummmm You have to edit the event of alt f4 like this
Code:Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown ' Code to Override the Alt-F4 keys combination If e.KeyData = Keys.Alt + Keys.F4 Then 'nothing End If End Sub
my guess..but I'm a noob
Edit: You forgot about Window's button
Last edited by willrulz188; 01-20-2011 at 04:48 PM.
Question ALL statements! ?[img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]You're in denial that you're in denial. ?
leoisso (01-27-2011),___x][GooD. (01-20-2011)
Windows will over ride that easy
add this to a timer (1 milisec)
Me.topmost = true
then it wont minimize at all
I had a waayy better one but I deleted it I'll try to redo it and get back to ya
Edit: Got it Follow this Works very well
Credits: Jason
Last edited by willrulz188; 01-20-2011 at 05:01 PM.
Question ALL statements! ?[img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]You're in denial that you're in denial. ?
Windows Key + L
Light travels faster than sound. That's why most people seem bright until you hear them speak.
On Form Closing event set e.Cancel to true?
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
Ok, In form load (important!) you need to enable key preview
Code:Me.KeyPreview = True
Then under the Form Key_Down Event add
Code:If e.KeyData = Keys.Alt + Keys.F4 Then e.Handled = True End If
That's it, a lot of ppl forget (including online resources) the Key_Preview has to be enabled.
willrulz188 (01-21-2011),___x][GooD. (01-21-2011)
Thanks alot it worked NextGen... I can do the same with Alt tab or win + l ..That things?
If i can, can you say me how i use the Select Case with that=?
NextGen1 (01-21-2011)
Yes You can, Windows Key is Private Const VK_LWIN As Byte = &H5B
use keys.lwin.
/SOLVED...
Only OP can request solved.