最近在调试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;
 

相关文章:

  • 2021-08-26
  • 2021-10-26
  • 2021-08-29
  • 2022-12-23
  • 2022-01-20
  • 2021-06-04
  • 2021-05-20
  • 2022-12-23
猜你喜欢
  • 2022-01-29
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案