-
I want to write a application which would take control of the screen when we boot the PC (having Windows 98). This application will have a form having buttons. Each button corresponds to one application. I want to the user to start application only from this form.Hence I want to hide the Task bar. So the user is restricted in running only those apps that I allow him to run.I saw a similar program in our public library where you can't run Windows explorer & do whatever you want to. Can somebody tell me how to hide the Task bar
thanks
neelesh
-
I think this should tell you what you want to know.
------------------
Ryan
-
The ShowWindow API works just as well:
Code:
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private 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
Private Const SW_HIDE = 0
Private Const SW_SHOW = 5
Private Sub Command1_Click()
Static bHidden As Boolean
Dim lHwnd As Long
lHwnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
Call ShowWindow(lHwnd, IIf(bHidden, SW_SHOW, SW_HIDE))
bHidden = Not bHidden
End Sub
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
thank you Aaron & Gimpster...
happy new year!!