Return to site

Windows 10 taskbar shows in full screen mode

broken image

I created this class that have two methods, the first enters in the 'full screen mode' and the second leaves the 'full screen mode'. I discovered that setting the WindowState to Normal before performing any modifications will stop the error with the not covered taskbar.

broken image
broken image

Note: I'm using Windows 8 and my taskbar isn't on auto-hide mode. I've been looking for an answer for this question in SO and some other sites, but one gave an answer was very complex to me and some others answers simply doesn't work correctly, so after a lot code testing I solved this puzzle.