Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
hi all
 
i have to make a application which shows output to the second monitor or LCD
 
like in original monitor it will show whole application with out put , but on the second monitor it will only show output / result.
 

it it possible to that??
 
like if i have simple 2+2 = 4 operation .
 
then on original screen it will show complete 2+2 = 4 but on 2nd monitor it will show output as 4.
Posted 25-Jun-13 4:55am
Comments
sorawit amorn at 25-Jun-13 17:35pm
   
are these 2 monitors on the same machine ?
syedaliaizazuddin at 1-Jul-13 6:58am
   
yessss
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

protected void Form1_OnLoad(...) {
    showOnMonitor(1);
}
 
private void showOnMonitor(int showOnMonitor)
{
    Screen[] sc;
    sc = Screen.AllScreens;
    if (showOnMonitor >= sc.Length) {
        showOnMonitor = 0;
    }
 
    this.StartPosition = FormStartPosition.Manual;
    this.Location = new Point(sc[showOnMonitor].Bounds.Left, sc[showOnMonitor].Bounds.Top);
    // If you intend the form to be maximized, change it to normal then maximized.
    this.WindowState = FormWindowState.Normal;
    this.WindowState = FormWindowState.Maximized;
}
 
Copied from:
http://stackoverflow.com/questions/2561104/how-do-i-ensure-a-form-displays-on-the-additional-monitor-in-a-dual-monitor-sc[^]
  Permalink  
v2
Comments
syedaliaizazuddin at 25-Jun-13 10:06am
   
Dear i m confused in how to display the out "4 " on the 2nd monitor.
 
i have looked into this , after lot of searching i posted here my question
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Use System.Windows.Forms.Screen[^] class to get information about available monitors.
Then use form's Location and Size properties to move it to desired monitor.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 565
1 Maciej Los 359
2 Kornfeld Eliyahu Peter 309
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 25 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100