日期:2014-05-18  浏览次数:20938 次

Winforms+DevPress控件!会的进来SpinEdit控件!打酱油!
设置SpinEdit 控件 不能输入负数和小数!急急急!



网站 电话,邮编不能出现小数和负数要有必要的验证







------解决方案--------------------
用正则表达式验证输入格式,你说的这几种格式网上都有现成的正则表达式
------解决方案--------------------
spinEdit1.Properties.Increment = (decimal)0.1;
spinEdit1.Properties.IsFloatValue = true;

------解决方案--------------------
this.spinEdit1.Properties.Increment = (decimal)0.01;
this.spinEdit1.Properties.IsFloatValue = true;

------解决方案--------------------
this.spinEdit1.Properties.Increment = (decimal)0.01;
this.spinEdit1.Properties.IsFloatValue = true;

------解决方案--------------------
this.spinEdit1.Properties.Increment = (decimal)0.01;
this.spinEdit1.Properties.IsFloatValue = true;