How to get the exact taskbar location

Freddy wu 0 Reputation points
2024-05-22T07:31:18.6466667+00:00

I have a UI program that needs to be displayed in the lower right corner of the desktop above the taskbar. The position of the taskbar is obtained and moved above the taskbar. However, on the Win11 system, the obtained taskbar position is higher than the position displayed on the taskbar. Causes a gap between the UI and the taskbar

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,503 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li 5,555 Reputation points
    2024-05-22T16:17:42.5+00:00

    Hello

    The taskbar in Windows 11 has been redesigned and its behavior is different from previous versions of Windows. The ability to move the taskbar around the screen is challenging due to the new design.

     

    The position of the taskbar in Windows 11 is fixed at the bottom and cannot be moved to the side or top without using a workaround. This could be the reason why you’re seeing a gap between your UI program and the taskbar on Windows 11.

     

    Here are a few things you could try:

     

    Modify Taskbar Settings: Navigate to Personalization > Taskbar and modify the settings under Taskbar behaviors.

     

    Registry Edit: You can try to edit the “Settings” binary key in the “StuckRects3” Registry key. However, modifying the Windows Registry can cause serious problems if misused, so it’s recommended to create a full backup of your system before proceeding.

     

    Third-Party Tools: Tools like ExplorerPatcher or Start11 can help you move the Taskbar to the top.

     

    Please note that these are workarounds and might not work perfectly. If the issue persists, you might want to consider adjusting your UI program to accommodate the fixed taskbar position in Windows 11.

    0 comments No comments