pointofexit Posted July 17, 2004 Share Posted July 17, 2004 I have 2 questions. (Visual Basic 2005 Express) 1. Is it possible to disable the keyboard on form load? 2. Is it possible to kill proccesses on form load? Link to comment Share on other sites More sharing options...
0 Winston Posted July 17, 2004 Share Posted July 17, 2004 Not sure about your first question i'm pretty sure you can... for the second one yes you can... Link to comment Share on other sites More sharing options...
0 pointofexit Posted July 17, 2004 Author Share Posted July 17, 2004 any idea how to disable keyboard? (or mainly, just the buttons that could close an aplication) Link to comment Share on other sites More sharing options...
0 Winston Posted July 17, 2004 Share Posted July 17, 2004 You'd have to read up on something like the System KeyHook or something i remember try this http://www.codeproject.com/system/KeyHook.asp Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted July 17, 2004 Share Posted July 17, 2004 any idea how to disable keyboard? (or mainly, just the buttons that could close an aplication) Are you looking to disable the keys for your app alone, or system-wide? Link to comment Share on other sites More sharing options...
0 pointofexit Posted July 17, 2004 Author Share Posted July 17, 2004 System Wide...... Its gonna be used as a system takeover program....(just to mess with people i know, not for hacking or anything) So i wanna disable therer ability to close my program...or use any other program fro that matter. Link to comment Share on other sites More sharing options...
0 pdog Posted July 17, 2004 Share Posted July 17, 2004 all you need to do is kill explorer, then disable controlbox, this will eliminate the X, max, min buttons. You could also set it to be hidden in the taskbar so even if they did launch explorer, you couldn't close it without taskman. EDIT: ALT-f4 still functions though. Link to comment Share on other sites More sharing options...
0 pointofexit Posted July 17, 2004 Author Share Posted July 17, 2004 the app is full screen. (ALT-F4, and any of the other close/minimize/swits task commands cant work) Link to comment Share on other sites More sharing options...
0 pdog Posted July 17, 2004 Share Posted July 17, 2004 I made a little program thats a little like yours, if you want the source email me. admin@flextechonline.net Link to comment Share on other sites More sharing options...
0 pdog Posted July 17, 2004 Share Posted July 17, 2004 the app is full screen. (ALT-F4, and any of the other close/minimize/swits task commands cant work) shoot you just gave me a new idea! Link to comment Share on other sites More sharing options...
0 John Veteran Posted July 17, 2004 Veteran Share Posted July 17, 2004 No matter what you do, I bet I could still get around it :shifty: I pwn all viruses :ninja: Link to comment Share on other sites More sharing options...
0 BlinkCarRacer Posted July 17, 2004 Share Posted July 17, 2004 You are teh 1337, gameguy. (Y) Link to comment Share on other sites More sharing options...
0 Hogwashy Posted July 17, 2004 Share Posted July 17, 2004 you can easily stop a form from unloading form_unload cancel = true no need to use stupid fullscreen workarounds Link to comment Share on other sites More sharing options...
0 pointofexit Posted July 18, 2004 Author Share Posted July 18, 2004 Thanks :-P EDIT: I am actualy kind of confused. How do i not alow it to unload? Link to comment Share on other sites More sharing options...
0 John Veteran Posted July 18, 2004 Veteran Share Posted July 18, 2004 In VB.NET: ? ? Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing? ? ? ? e.Cancel = True ? ? End Sub In C#:? ? ? ? private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)? ? ? ? { ? ? ? ? ? ? ? ? e.Cancel = true; ? ? ? ? } Link to comment Share on other sites More sharing options...
0 pointofexit Posted July 19, 2004 Author Share Posted July 19, 2004 thanks Link to comment Share on other sites More sharing options...
0 IDGAF Posted July 19, 2004 Share Posted July 19, 2004 The best way to do this is actually make the program work as a screensaver (look up SystemParametersInfo). Then you don't even need to worry about other processes and user keystrokes because everything becomes processed by your app. Link to comment Share on other sites More sharing options...
Question
pointofexit
I have 2 questions.
(Visual Basic 2005 Express)
1. Is it possible to disable the keyboard on form load?
2. Is it possible to kill proccesses on form load?
Link to comment
Share on other sites
16 answers to this question
Recommended Posts