Home All Groups Group Topic Archive Search About

Setting primary display

Author
12 Mar 2006 7:51 PM
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?

Author
12 Mar 2006 10:04 PM
Armin Zingler
"Paulers" <SuperG***@gmail.com> schrieb
> 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+%22visual+basic%22


Armin