[Mono-bugs] [Bug 81144][Min] New - Bounds discrepency between Linux and Windows

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Mar 14 17:57:43 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gehossafats at netmdc.com.


--- shadow/81144	2007-03-14 16:57:43.000000000 -0500
+++ shadow/81144.tmp.4679	2007-03-14 16:57:43.000000000 -0500
@@ -0,0 +1,57 @@
+Bug#: 81144
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: Debian 4.0 x86
+Status: NEW   
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: gehossafats at netmdc.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Bounds discrepency between Linux and Windows
+Description of Problem:  System.Windows.Forms.Screen.PrimaryScreen.Bounds
+return incorrect value on Linux (Debian 4.0, kde 3.5 x86 (AMDk7))  
+Steps to reproduce the problem:
+1. compile and run the following code on Linux and Windows:
+using System;
+using System.Windows.Forms;
+public class ShowDisplaySize
+        public static void Main(string[] args)
+        {
+        }
+Actual Results:
+Linux displays {x=0,y=0,Width=1024,Height=735} as the result for the
+display size
+Windows displays {x=0,y=0,Width=1024,Height=768} (running with either mono
+or .net runtime)
+Expected Results:
+Linux should display {x=0,y=0,Width=1024,Height=768} for PrimaryScreen bounds.
+How often does this happen? 
+Additional Information:
+There is not any documentation at present for Windows.Forms on the Mono
+documentation web site.  Viewing the ms .net documentation, states that
+PrimaryScreen get the primary display and that Bounds get the bounds of the
+display.  WorkingArea gets the display minus taskbar, docked windows,
+docked toolbars.

More information about the mono-bugs mailing list