Windows Task Manager a program included with Windows operating systems that displays application information, such as applications open, processes, services and performance of your system. Microsoft Visual Basic.NET---or VB.NET---is an object-oriented programming language engineered by Microsoft. You may want to disable Task Manager to limit users from ending applications or processes while your VB.NET application is running. In a few steps you may write VB.NET code to disable the Task Manager.
- Skill level:
Other People Are Reading
Start Microsoft Visual Basic Express and click "New Project..." on the left pane of your screen. Double-click "Windows Forms Application" to start a new project.
Double-click "Button" on the "Tools" pane. Double-click "Button1" to open the "Form1.vb" module.
Press "Ctrl" and "A" and then press "Delete" to remove code.
Copy and paste the following code to your "Form1.vb" module:
Public Class Form 1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim system Registry As RegistryKey = _ Registry.CurrentUser.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System") systemRegistry.SetValue("DisableTaskMgr", 1) systemRegistry.Close() End Sub
To enable Task Manager, replace the "1" with "0" as in the following line of code:
Press "F5" to run your program and click "Button1."
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for