我有這個錯誤報告:SplitContainer的錯誤
Collection is read only.
at System.Windows.Forms.SplitContainer.SplitContainerTypedControlCollection.SetChildIndexInternal(Control child, Int32 newIndex)
at System.Windows.Forms.Control.ControlCollection.SetChildIndex(Control child, Int32 newIndex)
at System.Windows.Forms.Control.UpdateChildControlIndex(Control ctl)
at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
我不知道它是什麼,搜索只是給了我一個MSDN後無解。有任何想法嗎?這個例外是關於什麼的,如果我找到一些可以發生的一般性描述,我可能會找到解決它的方法?
在你的代碼
顯示您的代碼? –
這是錯誤報告。代碼有超過10,000行,這不會導致任何特定的部分。 所以問題是沒有人知道爲什麼這可能會發生? –
該錯誤表示您正嘗試分配或從不允許進行此類操作的集合中刪除項目。它可能是一個'IEnumberable'或類似的只讀接口。 – Kami