Dual Monitors and Desktop Sizing

  • Thread starter Thread starter pregis
  • Start date Start date
P

pregis

I recently learned how to measure the bounds of the primary screen by using;

Dim w As Integer = Screen.PrimaryScreen.Bounds.Width
Dim h As Integer = Screen.PrimaryScreen.Bounds.Height

I have to additional questions if anyone is willing to help. How would I..

1) Determine which of two monitors was set as the Primary or (1) monitor and..
2) What the bounds of the second monitor or extended desktop are?

Thank you very much for considering these questions.

Patrick
 
pregis said:
I recently learned how to measure the bounds of the primary screen by using;

Dim w As Integer = Screen.PrimaryScreen.Bounds.Width
Dim h As Integer = Screen.PrimaryScreen.Bounds.Height

Yes, or

dim size = Screen.PrimaryScreen.Bounds.size '"As Size" with Option Infer Off
I have to additional questions if anyone is willing to help. How would I..

1) Determine which of two monitors was set as the Primary or (1) monitor and..
2) What the bounds of the second monitor or extended desktop are?

System.Windows.Forms.Screen.AllScreens returns all screens.

To question 1): the one with Primary=True
 
Back
Top