[Mono-bugs] [Bug 78395][Nor] New - Adding an empty TabControl results in a System.ArgumentOutOfRangeException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun May 14 07:49:04 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 xenomorph2 at onlinehome.de.

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

--- shadow/78395	2006-05-14 07:49:04.000000000 -0400
+++ shadow/78395.tmp.17741	2006-05-14 07:49:04.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 78395
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: xenomorph2 at onlinehome.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Adding an empty TabControl results in a System.ArgumentOutOfRangeException
+
+When you add an emptry TabControl without any TabPages to a Form and run
+the Programm the app immediately crashes with a
+System.ArgumentOutOfRangeException. On Windows it runs just fine.
+
+Unhandled Exception: System.ArgumentOutOfRangeException: ControlCollection
+does not have that many controls
+Parameter name: index
+0
+in [0x00040] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:297)
+System.Windows.Forms.Control+ControlCollection:get_Item (Int32 index)
+in [0x00007] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs:970)
+System.Windows.Forms.TabControl:GetTab (Int32 index)in (wrapper
+remoting-invoke-with-check) System.Windows.Forms.TabControl:GetTab (int)
+in [0x00007] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs:1093)
+System.Windows.Forms.TabControl+TabPageCollection:get_Item (Int32 index)
+in [0x00077] (at
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs:227)
+System.Windows.Forms.TabControl:set_SelectedIndex (Int32 value)
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.TabControl:set_SelectedIndex (int)
+in <0x000d1> TabControlTest.MainForm:InitializeComponent ()
+in <0x00013> TabControlTest.MainForm:.ctor ()
+in (wrapper remoting-invoke-with-check) TabControlTest.MainForm:.ctor ()
+in <0x0001b> TabControlTest.MainForm:Main (System.String[] args)


More information about the mono-bugs mailing list