How to Disable the Task Manager in VB.Net

Written by jaime avelar
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Disable the Task Manager in VB.Net
Learn how to disable Task Manager using Visual (Binaire 2 image by NJ from

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


  1. 1

    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.

  2. 2

    Double-click "Button" on the "Tools" pane. Double-click "Button1" to open the "Form1.vb" module.

  3. 3

    Press "Ctrl" and "A" and then press "Delete" to remove code.

  4. 4

    Copy and paste the following code to your "Form1.vb" module:

    Imports Microsoft.Win32

    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 = _
        systemRegistry.SetValue("DisableTaskMgr", 1)
    End Sub

    End Class

  5. 5

    To enable Task Manager, replace the "1" with "0" as in the following line of code:

    systemRegistry.SetValue("DisableTaskMgr", 0)

    Press "F5" to run your program and click "Button1."

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.