VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code hides the start button!!!

by Stringer (11 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 6th October 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This code hides the start button!!!

API Declarations


Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Const GW_CHILD = 5
Private Const GW_HWNDNEXT = 2
Private Const SW_HIDE = 0
Private Const SW_SHOW = 5
Private Const GW_HWNDFIRST = 0
Private Const GW_HWNDLAST = 1
Private Const GW_HWNDPREV = 3
Dim fWnd As Long, gWnd As Long, IpClass As String * 250, gClass As Long

'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
'@@@@@@ BY JOHN STRINGER @@@@@@'
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'

Rate This code hides the start button!!!



'@@@@@@ BY JOHN STRINGER @@@@@@'


Private Sub Form_Load()
HideWnd
End Sub

Function ShowWnd() As String
fWnd = FindWindow("Shell_TrayWnd", vbNullString)
gWnd = GetWindow(fWnd, GW_CHILD)
gClass = GetClassName(gWnd, IpClass, 250)
IpClass = Left$(IpClass, gClass)
If Left$(IpClass, 6) = "Button" Then
   ShowWindow gWnd, SW_SHOW
End If
End Function

Function HideWnd() As String
fWnd = FindWindow("Shell_TrayWnd", vbNullString)
gWnd = GetWindow(fWnd, GW_CHILD)
gClass = GetClassName(gWnd, IpClass, 250)
IpClass = Left$(IpClass, gClass)
If Left$(IpClass, 6) = "Button" Then
   ShowWindow gWnd, SW_HIDE
End If
End Function

Private Sub Form_Unload(Cancel As Integer)
ShowWnd
End Sub

Download this snippet    Add to My Saved Code

This code hides the start button!!! Comments

No comments have been posted about This code hides the start button!!!. Why not be the first to post a comment about This code hides the start button!!!.

Post your comment

Subject:
Message:
0/1000 characters