Anyone know how to disable Start Menu and My Computer, so that Users can't have access, or unable to click on them?
thnx
Printable View
Anyone know how to disable Start Menu and My Computer, so that Users can't have access, or unable to click on them?
thnx
This may be of some use:
http://www.winguides.com/registry/display.php/905/
You should check www.regedit.com for more as well.
'in a form
Private Sub Command1_Click()
Dim shelltraywnd As Long, button As Long
shelltraywnd = FindWindow("shell_traywnd", vbNullString)
button = FindWindowEx(shelltraywnd, 0&, "button", vbNullString)
Call EnableWindow(button, 0)
End Sub
Private Sub Command2_Click()
Dim shelltraywnd As Long, button As Long
shelltraywnd = FindWindow("shell_traywnd", vbNullString)
button = FindWindowEx(shelltraywnd, 0&, "button", vbNullString)
Call EnableWindow(button, 1)
End Sub
'in a module
Public Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Check out this other thread on the same subject:
http://forums.vb-world.net/showthrea...hreadid=104795