Results 1 to 2 of 2

Thread: Start Button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Singapore
    Posts
    118

    Start Button

    Anyone knows how to disable the start button on win98, win2000 and win me?
    FujIn

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Try this...it will toggle. You can modify as needed.
    VB Code:
    1. 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
    2. Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
    3.  
    4. Private Sub Command1_Click()
    5. Static bEnabled As Boolean
    6.     Dim lhWnd As Long
    7.  
    8.     lhWnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
    9.     lhWnd = FindWindowEx(lhWnd, 0&, "Button", vbNullString)
    10.     Call EnableWindow(lhWnd, bEnabled)
    11.     bEnabled = Not bEnabled
    12.  
    13. 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