[Mono-bugs] [Bug 80136][Min] New - DataGrid: ArgumentException resizing form to smallest size possible
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Dec 3 06:45:38 EST 2006
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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=80136
--- shadow/80136 2006-12-03 06:45:38.000000000 -0500
+++ shadow/80136.tmp.29335 2006-12-03 06:45:38.000000000 -0500
@@ -0,0 +1,72 @@
+Bug#: 80136
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DataGrid: ArgumentException resizing form to smallest size possible
+
+When a DataGrid with scrollbars is displayed on a form, and the form is
+resized to a very small size then an ArgumentException is thrown:
+
+System.ArgumentException: Value '-4' must be greater than or equal to 0.
+ at System.Windows.Forms.ScrollBar.set_LargeChange (Int32 value)
+[0x00000]
+ at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.ScrollBar:set_LargeChange (int)
+ at System.Windows.Forms.DataGrid.SetUpHorizontalScrollBar (System.Int32&
+maximum) [0x00000]
+ at System.Windows.Forms.DataGrid.CalcGridAreas () [0x00000]
+ at System.Windows.Forms.DataGrid.CalcAreasAndInvalidate () [0x00000]
+ at System.Windows.Forms.DataGrid.OnLayout
+(System.Windows.Forms.LayoutEventArgs levent) [0x00000]
+ at System.Windows.Forms.Control.PerformLayout
+(System.Windows.Forms.Control affectedControl, System.String
+affectedProperty) [0x00000]
+ at System.Windows.Forms.Control.OnResize (System.EventArgs e) [0x00000]
+ at System.Windows.Forms.DataGrid.OnResize (System.EventArgs e) [0x00000]
+ at System.Windows.Forms.Control.OnSizeChanged (System.EventArgs e)
+[0x00000]
+ at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32
+width, Int32 height, Int32 clientWidth, Int32 clientHeight) [0x00000]
+ at System.Windows.Forms.Control.UpdateBounds () [0x00000]
+ at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message&
+m) [0x00000]
+ at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000]
+ at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x00000]
+X11 Error encountered:
+ Error: BadWindow (invalid Window parameter)
+ Request: 40 (X_TranslateCoords)
+ Resource ID: 0x1E00002
+ Serial: 56465
+ Hwnd: Hwnd, Mapped:True ClientWindow:0x1E00003,
+WholeWindow:0x1E00002, Parent:[<null>]
+ Control: <handle 31457283 non-existant>
+ at System.Windows.Forms.XplatUIX11.HandleError ()
+ at System.Windows.Forms.XplatUIX11.HandleError ()
+ at System.Windows.Forms.XplatUIX11.XTranslateCoordinates ()
+ at System.Windows.Forms.XplatUIX11.XTranslateCoordinates ()
+ at System.Windows.Forms.XplatUIX11.AddConfigureNotify ()
+ at System.Windows.Forms.XplatUIX11.UpdateMessageQueue ()
+ at System.Windows.Forms.XplatUIX11.GetMessage ()
+ at System.Windows.Forms.XplatUI.GetMessage ()
+ at System.Windows.Forms.Application.RunLoop ()
+ at System.Windows.Forms.Application.Run ()
+ at MainForm.Main ()
+
+To reproduce:
+1. extract the attached (gzipped) tar archive.
+2. compile and run test.cs.
+3. follow the on-screen instructions.
More information about the mono-bugs
mailing list