How to prevent the full-screen form covering the taskbar?

Does anyone know how I can prevent my winform C # from covering / occupying the top of the taskbar? The frame style of my form is set to "FixedToolWindow", which seems to cause this. I was thinking about reducing the height of the form when the user makes the form as possible as possible, but this will not work, because people can have taskbars of different sizes.

+5
source share
1 answer

The Screen class will give you both the borders of the screen and the work area. The workspace is the borders minus the taskbar, so just set your shape in the same place as the WorkingArea screen

The workspace is the area of ​​the display desktop, with the exception of taskbars, docking windows and docking toolbars.

+3
source

All Articles