Setting primary display

  • Thread starter Thread starter Paulers
  • Start date Start date
P

Paulers

hello,

I have 2 monitors and I need to write some code that will set the
primary display from one monitor to the other. I am reffering to the
option under the display properties "use this device as primary
monitor". How would I set that in vb.net?
 
Paulers said:
hello,

I have 2 monitors and I need to write some code that will set the
primary display from one monitor to the other. I am reffering to the
option under the display properties "use this device as primary
monitor". How would I set that in vb.net?


I think it is not part of the framework. Use API function
ChangeDisplaySettings or ChangeDisplaySettingsEx.

Have a look here:
http://www.google.com/search?as_qdr=all&q=CDS_SET_PRIMARY+"visual+basic"


Armin
 
Back
Top