Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

How to Hide/Show the Windows Task Bar and the Desktop...
[ All Languages » VB »  Api]

Total Hit ( 3136)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


API Declarations

Click here to copy the following block
Private Declare Function ShowWindow Lib "user32.dll" (ByVal hWnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function EnableWindow Lib "user32.dll" (ByVal hWnd As Long, ByVal fEnable As Long) As Long

Public Const SW_HIDE = 0
Public Const SW_SHOW = 5

Module

Click here to copy the following block
Public Sub TaskBar(Visible As Boolean)
  Dim hWnd As Long

  hWnd = FindWindow("Shell_TrayWnd", "")
  If Visible Then
    ShowWindow hWnd, SW_SHOW
  Else
    ShowWindow hWnd, SW_HIDE
  End If
  EnableWindow hWnd, Visible
End Sub

Public Sub Desktop(Visible As Boolean)
  Dim hWnd As Long

  hWnd = FindWindow("Progman", "Program Manager")
  If Visible Then
    ShowWindow hWnd, SW_SHOW
  Else
    ShowWindow hWnd, SW_HIDE
  End If
  EnableWindow hWnd, Visible
End Sub



Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.