VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



How to hide the Windows95-Startbar

by gunti (6 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

This shows an easy way, how to hide window's 95/98 Startbar.

API Declarations
'copy this in a module:
Dim hwnd1 As Long
Declare Function SetWindowPos Lib "user32" _
(ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As _
Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags _
As Long) As Long
Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName _
As String) As Long

Rate How to hide the Windows95-Startbar

'this is for the form; ->
Private Sub Command1_Click()
  hwnd1 = FindWindow("Shell_traywnd", "")
  Call SetWindowPos(hwnd1, 0, 0, 0, 0, 0, &H80)
End Sub
Private Sub Command2_Click()
  hwnd1 = FindWindow("Shell_traywnd", "")
  Call SetWindowPos(hwnd1, 0, 0, 0, 0, 0, &H40)
End Sub

Download this snippet    Add to My Saved Code

How to hide the Windows95-Startbar Comments

No comments have been posted about How to hide the Windows95-Startbar. Why not be the first to post a comment about How to hide the Windows95-Startbar.

Post your comment

Subject:
Message:
0/1000 characters