• 0

Some VB.NET Question


Question

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

  • 0
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

  • 0

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

  • 0

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

  • 0
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

  • 0

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

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.