private void spinEdit1_EditValueChanging(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e)
        {
            string s = Convert.ToString(e.NewValue);
            if (s == "")
                return;
            int index = s.IndexOf('.');
            string sv = "";
            if (index == -1)
                sv = s;
            else
                sv = s.Substring(0, index);
            int v = Convert.ToInt32(sv);
            if (v < 1)
                e.Cancel = true;
        }

 

相关文章:

  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2021-12-07
  • 2021-08-02
  • 2021-12-15
  • 2021-09-20
  • 2021-08-24
猜你喜欢
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案