Screen Resolution

This code snippet will allow you to fetch the screen resolution. Put the code in the button named btnResol and see.

Private Sub btnResol_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnResol.Click

MessageBox.Show (System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width())
MessageBox.Show (System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height())

End Sub

You might also like...


Bharat Nagarajan


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“A computer lets you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila” - Mitch Ratcliffe