最近在调试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;
分类:
.net,C#小技巧,代码片断
标签:
winform
本文转自Sam Lin博客博客园博客,原文链接:http://www.cnblogs.com/samlin/archive/2012/03/30/2425204.html,如需转载请自行联系原作者