Click here to Skip to main content
16,012,316 members

Comments by Mahendra Saini (Top 1 by date)

Mahendra Saini 28-Jul-14 3:47am View    
access deniend error ouccer when use the following code
Private Sub DisableTaskManager()
Dim regkey As RegistryKey
Dim keyValueInt As String = "1"
Dim subKey As String = "Software\Microsoft\Windows\CurrentVersion\Policies\System"
Try
regkey = Registry.CurrentUser.CreateSubKey(subKey)
regkey.SetValue("DisableTaskMgr", keyValueInt)
regkey.Close()
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Registry Error!")
End Try

End Sub