Learn how to a build a cloud-first strategyRegister Now


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
Medium Priority
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
  • 2
LVL 96

Accepted Solution

Bob Learned earned 750 total points
ID: 19661128
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

ID: 19668139
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
ID: 19669329
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month21 days, 3 hours left to enroll

810 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