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...

Comments

Bharat Nagarajan

Contribute

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.

“You can stand on the shoulders of giants OR a big enough pile of dwarfs, works either way.”