Posts Tagged ‘height’

[C#] How to get screen resolution/width/height?

It’s just a matter of using this one line of code:

var screen = System.Windows.Forms.Screen.PrimaryScreen.Bounds;
var width  = screen.Width;
var height = screen.Height;

A quick noted post for later use since a google search on this topic not giving you the full answer right a way.

How to get the height of the title bar of the main application windows? – Stack Overflow

How to get the height of the title bar of the main application windows? – Stack Overflow.