Click here to Skip to main content
15,885,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
sorawit amorn 25-Jun-13 17:35pm    
are these 2 monitors on the same machine ?
syedaliaizazuddin 1-Jul-13 6:58am    
yessss

C#
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[^]
 
Share this answer
 
v2
Comments
syedaliaizazuddin 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
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900