This will hide the desktop icons and taskbar and then (under Win9x) prevent the user from accessing the start menu.
Place two command buttons on a form and include this code. Click the first button to hide and the second button to restore....[tt]
Private Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function ShowWindow Lib "user32.dll" _
(ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function SystemParametersInfo Lib "user32" _
Alias "SystemParametersInfoA" (ByVal uAction As Long, _
ByVal uParam As Long, lpvParam As Any, _
ByVal fuWinIni As Long) As Long
Private Sub Command1_Click()
[/tt]'Hide the icons...[tt]
ShowWindow FindWindow("progman", vbNullString), 0
[/tt]'Hide the taskbar...[tt]
ShowWindow FindWindow("Shell_TrayWnd", vbNullString), 0
[/tt]'Disable the system keys...[tt]
tmp& = SystemParametersInfo(97&, 1&, 0&, 0&)
End Sub
Private Sub Command2_Click()
[/tt]'Show the icons...[tt]
ShowWindow FindWindow("progman", vbNullString), 1
[/tt]'Show the taskbar...[tt]
ShowWindow FindWindow("Shell_TrayWnd", vbNullString), 1
[/tt]'Enable the system keys...[tt]
tmp& = SystemParametersInfo(97&, 0&, 0&, 0&)
End Sub
[/tt]
Note that none of this is very friendly to the user. I hope you have a good reason for prohibiting the basic Windows interface. An application crash could require a reboot and might serve as notice that your program isn't worth much.