Solved

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

Posted on 2009-07-08
2
231 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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