問題:
將groupbox控件類型通過代碼改爲KryptonGroupbox後,切換回設計器時出現異常:
ReadOnly controls collection:
在 ComponentFactory.Krypton.Toolkit.KryptonReadOnlyControls.Add(Control value)
解決方法:
將
this.groupBox1.Controls.Add(xxxxx);
改爲
this.groupBox1.Panel.Controls.Add(xxxxx);