Results 1 to 2 of 2

Thread: SomeBody can make this ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2000
    Location
    Guadalajara, Jalisco, Mex
    Posts
    105
    I like to make a Program in VB that can make a window ( or program )dissapeared from the window's task bar, but the program keep loaded.
    (Sorry my english)

  2. #2
    Guest
    Use the ShowWindow API.
    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 Sub Command1_Click()
        Dim hApp As Long
        hApp = FindWindowEx(0, 0, "SciCalc", "Calculator")
        If hApp <> 0 Then ShowWindow hApp, 0 '<-- Change 0 to 1 to display the Window again
    End Sub

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