string screenWidth = Screen.PrimaryScreen.Bounds.Width.ToString(); string screenHeight = Screen.PrimaryScreen.Bounds.Height.ToString(); Label1.Text = ("Resolution: " + screenWidth + "x" + screenHeight);
Screen.FromControl(this).Bounds