随笔 - 730  文章 - 40 评论 - 17 阅读 - 67万

   未将对象引用设置到对象的实例。     
 
 
 
     
此错误的实例(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...

posted on   lypzxy  阅读(1042)  评论(1编辑  收藏  举报
编辑推荐:
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决
历史上的今天:
2017-05-04 sql server 字符串字节长度
2017-05-04 sql server的缺陷 将截断字符串或二进制数据 哪个字段
2015-05-04 TThread 线程的例子
点击右上角即可分享
微信分享提示