未將對象引用設置到對象的實例。
此錯誤的實例(1)
1。 隱藏調用堆棧
在 DevExpress.XtraEditors.Repository.RepositoryItem.CreateDesigner()
在 DevExpress.XtraEditors.Repository.RepositoryItem.FilterProperties(PropertyDescriptorCollection collection)
在 DevExpress.XtraEditors.Repository.RepositoryItem.System.ComponentModel.ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
在 System.ComponentModel.TypeDescriptor.MergedTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
在 System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes)
在 System.ComponentModel.Design.Serialization.CodeDomSerializer.ResetBrowsableProperties(Object instance)
在 System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
在 System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
在 System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)
工具欄添加lookup控件后,拖住到form是上,報錯。是這個原因引起的。Form上并未出現lookup控件
屬性“Properties”的代碼生成失敗。錯誤是: “未將對象引用設置到對象的實例。”



不光是自己寫的控件報錯,屬性“Properties”的代碼生成失敗。錯誤是: “未將對象引用設置到對象的實例。”
所有的dev的控件,加載選項卡里的dev控件拖放到界面上都報這個錯。
https://blog.csdn.net/wmg494005678/article/details/8512126
難道是這個原因?原來是
引用的Dll出錯了,悲催,工具欄里面我用的是“GridLookUpedit”,我實際上應該用LookUpEdit...
浙公網安備 33010602011771號