错误信息:
索引超出范围。必须为非负值并小于集合大小。
参数名: index
System.ArgumentOutOfRangeException
能看出来具体导致这个异常ArgumentOutOfRangeException出错的位置吗?
Stack Trace:
在 System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
在 Crownwood.Magic.Collections.TabPageCollection.get_Item(Int32 index)
在 Crownwood.Magic.Controls.TabControl.RecalculateSinglelineTabs(Int32 xWidth, Int32 xStartPos, Rectangle tabPosition)
在 Crownwood.Magic.Controls.TabControl.Recalculate()
在 Crownwood.Magic.Controls.TabControl.OnSizeChanged(EventArgs e)
在 System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
在 System.Windows.Forms.Control.UpdateBounds()
在 System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.UserControl.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)