c# how to get screen resolution code example
Example 1: how to get the width of the screen C#
Screen.FromControl(this).Bounds
Example 2: c# get display resolution
string screenWidth = Screen.PrimaryScreen.Bounds.Width.ToString();
string screenHeight = Screen.PrimaryScreen.Bounds.Height.ToString();
Label1.Text = ("Resolution: " + screenWidth + "x" + screenHeight);