Solved

How to get all available screen size for 2 or 4 monitors.

Posted on 2009-07-08
2
232 Views
Last Modified: 2013-12-17
   Hi experts!

  Im using C# 2008 , WinForm NET 2. I have save position of Winform and restore it when I open program. But & I have 1 small problem. My software work with 4 screen on 1 computer, which screen give more space in the right (X axis). Now & I work with 1 monitor, but again my program is restored his position with let say X = 2048 , which is not visible in this 1 screen J

 So I need solution to get max. screen size and if my save position is not possible to not restore it. How to do this? Help please &
0
Comment
Question by:dvplayltd
  • 2
2 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 24803817
try with:
System.Windows.Forms.Screen.GetBounds()
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 24803833
Another alternative:
System.Windows.Forms.SystemInformation.VirtualScreen
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 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

14 Experts available now in Live!

Get 1:1 Help Now