locked
Hide/Disable Start Button in Windows 7 RRS feed

  • Question

  • We are migrating from Windows XP to Windows 7. In Windows XP, we can able to find the "Start" button handler and hide it from the user. But this functionality seems to be broken in Windows 7. i am using below code to disable start button, its not disabling... its completely visible when i try to show the task bar.

    Code Snippet:

     IntPtr nShellTray = FindWindow("Shell_TrayWnd", "");
                IntPtr nStartButton = FindWindowEx(nShellTray, IntPtr.Zero, "Button", "Start");

                //Windows 7 - No Text "Start" on Button
                if (nStartButton.Equals(IntPtr.Zero))
                    nStartButton = FindWindow("Button", null);

                if (nShellTray != IntPtr.Zero && nStartButton != IntPtr.Zero)
                {
                    ShowWindow(nStartButton, SW_HIDE);

                    ShowWindow(nShellTray, SW_HIDE);
                }
    Monday, January 27, 2014 8:05 PM

Answers

  • Hi,

    Based on my knowledge, there is no official way to hide/disable start button. But we can use 3rd party software to remove start button.

    You can refer to http://www.thewindowsclub.com/how-to-remove-start-orb-button-in-windows-7-or-vista

    Note Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.


    Andy Altmann
    TechNet Community Support

    • Marked as answer by Karen Hu Wednesday, February 5, 2014 3:31 PM
    Wednesday, January 29, 2014 4:35 PM

All replies

  • Hi,

    Based on my knowledge, there is no official way to hide/disable start button. But we can use 3rd party software to remove start button.

    You can refer to http://www.thewindowsclub.com/how-to-remove-start-orb-button-in-windows-7-or-vista

    Note Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.


    Andy Altmann
    TechNet Community Support

    • Marked as answer by Karen Hu Wednesday, February 5, 2014 3:31 PM
    Wednesday, January 29, 2014 4:35 PM
  • Can you try this one:

    HWND hStartBtn = FindWindowEx(NULL, NULL, MAKEINTATOM(0xC017), TEXT("Start"));
    if (hStartBtn != NULL)
    {
        ShowWindow(hStartBtn, FALSE);
    }


    http://www.resourcesforit.com/

    Wednesday, January 29, 2014 4:42 PM