Keep taskbar on top windows 10

broken image

Main Form covering the whole available space of the screen: this.ClientSize = new (, ) Main Form covering all the available space above the taskbar: this.ClientSize = new (, ) Take a look at the sample codes below to understand this better. On the other hand, it is considered outside the 'WorkingArea' and thus, depending upon the properties you are using, it might be ignored. Without analysing the exact motivation of doing this and whether this approach is the best way through, you should note that the taskbar's behaviour is equivalent to the one of any other window: TopMost can be used without any restriction. This.StartPosition = .WindowsDefaultBounds Designer.cs file: this.AutoScaleMode = .None How can I keep my window above the taskbar?Īlternatively, is there a way that I can draw on the 'final' version of the screen?

broken image
broken image

I can draw on this window (I have 4 buttons on it to show that it's properly covering the whole desktop) - but when I click on the taskbar, it is brought to the top and overlays my buttons and drawn line. To this end, I have created a frameless, topmost, transparent window. My overall goal is to render a second (or third, fourth.) mouse cursor.