To retrieve the display devices (VGA) installed on system and then displaying a different file on each display device (attached monitors)

Posted on 2007-08-09
Last Modified: 2013-11-08
I am working on an application for which hardware specifications are as under:
Pentium 3.4 processor with 2 external VGAs and one builtin VGA (in motherboard) and 3 monitors attached with it on three display devices.
I want to write a program in Visual C Sharp 2005, where i want to get the available display devices on the system (like in my case its 3 display devices) and then i want to run File1.doc on display device1 (monitor 1), File2.doc on display device2 (monitor 2) and File3.doc on display device3 (monitor3).
It means in my application i've to specify the available display devices to user and then user will select which file to dispaly on which display device. and then application will display that specific file to that display device's attached monitor.
Question by:nsgonline
    LVL 96

    Accepted Solution

    1) The .NET framework has a collection screens in the Screens collection.

    2) You can put a form on a screen by setting its location to a point within the working area of the screen that you want.


    Author Comment

    Thanks for the solution. Can u explain the point 2, with bit more details; if with an example that is more helpfull b/c I haven't worked with screen class before. And along with this i want to open each file in full screen mode.
    LVL 96

    Expert Comment

    by:Bob Learned
    Something like this maybe:

                Form1 f = new Form1();
                Rectangle area = Screen.AllScreens[1].WorkingArea;
                f.Location = new Point(area.Left, area.Top);
                f.Size = new Size(area.Width, area.Height);


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now