How do you find out the height of the task tray in vb.net, programmatically?
I created an application which Windows 7 users complain about, because it always overlaps their task tray. I know its 32 px on windows XP, but how do I know how large it is elsewhere?
I am making a winforms app in vb.net 2008.
Thanks!
You should probably use
Screen.PrimaryScreen.WorkingAreato get that. Note that the task bar may not be along the bottom edge of the screen, and the user may also resize it. If you want to detect whether your form is located completely within the working area of the screen, this will do: