Board index » Visual Studio » Screen Control

Screen Control

Visual Studio188
OS: Win XP



Language: VB.net or C#



I have a program where I need to launch 2 separate instances of an App

called "Main.exe". Each instance will need to be piped to there own

video display. Both displays need to be running at a screen resolution

of 640x480.



I am able to force to screen resolution of the display that the app is

launched in(currently only the primary screen), by setting the XP

compatibility mode to launch in 640x480. I still haven't been able

to direct which screen the app starts in. Any help would be asewome!


-
 

Re:Screen Control

Just specify the main form's position in coordinates. if you have two

screens side by side and both screens are 640x580 in resolution, then the

coordinates of one screen are 0-639, 0-479. The second screen begins at 640,

0.



So, if you position your window at 0,0 it appears on one screen. If you

position it at 640,0 it appears on the other.



Hope that helps





--

Pete Wright

Author of ADO.NET Novice to Pro for Apress

www.petewright.org





<zoneal@yahoo.com>wrote in message

Quote
OS: Win XP



Language: VB.net or C#



I have a program where I need to launch 2 separate instances of an App

called "Main.exe". Each instance will need to be piped to there own

video display. Both displays need to be running at a screen resolution

of 640x480.



I am able to force to screen resolution of the display that the app is

launched in(currently only the primary screen), by setting the XP

compatibility mode to launch in 640x480. I still haven't been able

to direct which screen the app starts in. Any help would be asewome!







-