• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

Hiding Taskbar and Ctrl Key

I have written an application. Whenever it get executed i want to hide taskbar and ctrl key. Ultimate goal is no one should be in a position to open the taskmanager.
0
gopinair
Asked:
gopinair
  • 2
  • 2
  • 2
2 Solutions
 
Shahid ThaikaCommented:
Don't know how to hide the CTRL key of the keyboard :P :), but this hides the taskbar.

---------------------------------------------------------------------------------------------------------
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private Const SW_SHOW = 5
Private Const SW_HIDE = 0

Private Sub Form_Load()
Dim lhWnd As Long

'Get the handle of the taskbar
lhWnd = FindWindow("Shell_TrayWnd", vbNullString)

'Hide the task bar
ShowWindow lhWnd, SW_HIDE

'Pause for 5 seconds
Sleep 5000

'show the task bar
ShowWindow lhWnd, SW_SHOW
End Sub
---------------------------------------------------------------------------------------------------------
0
 
Erick37Commented:
To disable the Task Manager, create the following key in the registry:

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr = dword:1

0
 
Shahid ThaikaCommented:
Incase you don't want to mess with the clients registry, you can use FindWindow API to keep a look out for the Task Manager window and close it by sending a message, if it is open. You may also want to look at the following sites...
http://www.codeguru.com/vb/gen/vb_system/article.php/c1661/
http://www.meliorasoft.com/kits/keyboard/
http://is-it-true.org/nt/xp/registry/rtips23.shtml
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
gopinairAuthor Commented:
how to lock the keyboard and hide desktop.
0
 
Erick37Commented:
Was your original question answered?
0
 
gopinairAuthor Commented:
No.. I donot want to dicturb the registry.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now