tags:

views:

209

answers:

2

How to get the total height of a windows form including non-client area? Size does not seem to work for my window (FormBorderStyle = FixedToolWindow, if that helps).

+2  A: 

Try the DesktopBounds property of the form.

drs9222
+2  A: 

The Size property should definitely work. Beware that the form may be rescaled due to differences in the system font or the video adapter DPI setting between the design machine and the production machine. The real size won't be available until the Load event.

Hans Passant