A A. Gaubatz Jun 2, 2006 #1 Does anyone know a fast and easy way of detecting the user's current screen resolution in VB.NET? Thanks in advance,
Does anyone know a fast and easy way of detecting the user's current screen resolution in VB.NET? Thanks in advance,
S ShaneO Jun 2, 2006 #2 A. Gaubatz said: Does anyone know a fast and easy way of detecting the user's current screen resolution in VB.NET? Thanks in advance, Click to expand... Dim ScrnRes As Rectangle = Screen.PrimaryScreen.Bounds Dim W As Integer = ScrnRes.Width Dim H As Integer = ScrnRes.Height Also remember - Dim ScrnRes As Rectangle = Screen.PrimaryScreen.WorkingArea Hope this helps ShaneO There are 10 kinds of people - Those who understand Binary and those who don't.
A. Gaubatz said: Does anyone know a fast and easy way of detecting the user's current screen resolution in VB.NET? Thanks in advance, Click to expand... Dim ScrnRes As Rectangle = Screen.PrimaryScreen.Bounds Dim W As Integer = ScrnRes.Width Dim H As Integer = ScrnRes.Height Also remember - Dim ScrnRes As Rectangle = Screen.PrimaryScreen.WorkingArea Hope this helps ShaneO There are 10 kinds of people - Those who understand Binary and those who don't.
G Guest Jun 2, 2006 #3 If you are using .Net 2.0, you can use: My.Computer.Screen.PrimaryScreen.Bounds.Height My.Computer.Screen.PrimaryScreen.Bounds.Width
If you are using .Net 2.0, you can use: My.Computer.Screen.PrimaryScreen.Bounds.Height My.Computer.Screen.PrimaryScreen.Bounds.Width