Dual Monitors and Desktop Sizing

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
 
A

Armin Zingler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Screenshot From Dual Monitors 1
Screen Capture w/ Dual Monitors 1
Extending Desktop 5
Dual monitor setup problems 2
dual monitors 2
Problem with SHAppBarMessage 4
Dual Monitors 2
Playing games on Dual Monitors? 2

Top