[Mono-bugs] [Bug 79242][Maj] New - Exception raised when changing tabs with big labels

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 1 04:33:45 EDT 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 knocte at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79242

--- shadow/79242	2006-09-01 04:33:45.000000000 -0400
+++ shadow/79242.tmp.11951	2006-09-01 04:33:45.000000000 -0400
@@ -0,0 +1,71 @@
+Bug#: 79242
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Major
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: knocte at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Exception raised when changing tabs with big labels
+
+Using Mono 1.1.17 on Win32.
+
+I will attach a testcase.
+
+If the labels of the tabpages are big, the following exception is raised: 
+
+Unhandled Exception: System.ArgumentOutOfRangeException: ControlCollection
+does not have that many controls
+Parameter name: index
+-1
+  at System.Windows.Forms.Control+ControlCollection.get_Item (Int32 index)
+[0x00000]
+  at System.Windows.Forms.TabControl.GetTab (Int32 index) [0x00000]
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.TabControl:GetTab
+ (int)
+  at System.Windows.Forms.TabControl+TabPageCollection.get_Item (Int32
+index) [0x00000]
+  at System.Windows.Forms.TabControl.SizeTabs (Int32 row_width) [0x00000]
+  at System.Windows.Forms.TabControl.SizeTabs () [0x00000]
+  at System.Windows.Forms.TabControl.set_SelectedIndex (Int32 value) [0x00000]
+  at System.Windows.Forms.TabControl.MouseDownHandler (System.Object
+sender, System.Windows.Forms.MouseEventArgs e) [0x00000]
+  at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_MouseEventArgs
+(object,System.Windows.Forms.MouseEventArgs)
+  at System.Windows.Forms.Control.OnMouseDown
+(System.Windows.Forms.MouseEventAr
+gs e) [0x00000]
+  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message m)
+[0x00000]
+  at System.Windows.Forms.TabControl.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]
+  at (wrapper native-to-managed) System.Windows.Forms.NativeWindow:WndProc
+(intptr,System.Windows.Forms.Msg,intptr,intptr)
+  at <0x00000> <unknown method>
+  at (wrapper managed-to-native)
+System.Windows.Forms.XplatUIWin32:Win32Dispatch
+Message (System.Windows.Forms.MSG&)
+  at System.Windows.Forms.XplatUIWin32.DispatchMessage
+(System.Windows.Forms.MSG msg) [0x00000]
+  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG
+msg)
+ [0x00000]
+  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context) [0x00000]
+  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [0x00000]
+  at FormConfigurationd.Program.Main () [0x00000]


More information about the mono-bugs mailing list