You can determine the current screen resolution of your machine with the help of System.Windows.Forms.Screen class.
In this code sample we are using PrimaryScreen.Bounds property for finding width and height of the display or monitor
[C#]
string _ScreenWidth = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width.ToString(); string _ScreenHeight = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height.ToString(); MessageBox.Show("Current resolution of your machine is " + _ScreenWidth + " X " + _ScreenHeight);
[vb]
string _ScreenWidth = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width.ToString() string _ScreenHeight = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height.ToString() MessageBox.Show("Current resolution of your machine is " & _ScreenWidth + " X " & _ScreenHeight)