Windows taskbar width and height
Hello.
I like having the windows taskbar on the top of my screen, so sometimes new windows that appear on the top are covered by it, I can't move them and it gets annoying.
I have made a program which can see where the taskbar is and positions itself a little better. For example, if the taskbar is on the top of the screen and the user has selected the program to appear on the top of the screen as well, then I subtract something from Form1.top.
This works perfectly on my machine, as I subtract exactly the taskbar height, but this number may vary in other machines.
I have Windows XP but I have selected the old windows 98 style. The normal XP taskbar is thicker. Or someone could have a bigger taskbar by dragging it...
So the problem is, how can I know the windows taskbar's real height (when it's on top or bottom) and width (when it's left or right of the screen)?
Re: Windows taskbar width and height
Thanks - exactly what I needed - I had the same issue with scaling as the OP and the replies fixed it.
Re: Windows taskbar width and height
FYI You can use the sysinfo control and access the work area top, left, height and width properties to determine the screen area-the task bar. If you set all of your form properties = the proper workarea property the result will be a properly positioned form that takes full screen - the taskbar area no matter where the task bar is located or what size it may be.
I generally use this for my mdi parent forms.