Right-click the taskbar, and then click Lock the Taskbar.
When you lock the taskbar into position, it cannot be moved to a new location on the desktop.
To move the taskbar to a new location, click Lock the Taskbar again to clear the check mark, and then drag the taskbar to its new location.
Hide the taskbar
Taskbar button grouping overview