[winform]Value Object property expects either null/nothing value or int type

杀马特。学长 韩版系。学妹 提交于 2019-11-26 11:50:36

最近在调试winform时出现以下错误:

Value Object property expects either null/nothing value or int type

 

原因:

由于C# Winform应用程序是使用DevComponents.DotNetBar2控件制作的,当使用
IntegerInput初始化其Text值是出现:“
Value Object property expects either null/nothing value or int type

解决方法:

不使用Text属性,而改用ValueObject  属性,如:

txtServiceObjAge.ValueObject = null;
 

转载于:https://www.cnblogs.com/samlin/archive/2012/03/30/2425204.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!