Results 1 to 4 of 4

Thread: Hiding Task bar

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 1999
    Posts
    41

    Post

    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

  2. #2
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    I think this should tell you what you want to know.

    ------------------
    Ryan

  3. #3
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    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]


  4. #4

    Thread Starter
    Member
    Join Date
    Dec 1999
    Posts
    41

    Post

    thank you Aaron & Gimpster...
    happy new year!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width