WinForm数据验证类using System;
WinForm数据验证类
using System.Collections.Generic;
WinForm数据验证类
using System.Text;
WinForm数据验证类
using System.Windows.Forms;
WinForm数据验证类
using System.Reflection;
WinForm数据验证类
namespace NClay.Windows
使用代码
 private void button1_Click_1(object sender, EventArgs e)
        {
            if (mVF.IsVali())
            {
                MessageBox.Show("ok");
            }
        }
        NClay.Windows.ValidaterFactory mVF;
        private void Form1_Load(object sender, EventArgs e)
        {
            mVF = new NClay.Windows.ValidaterFactory(errorProvider1);
            mVF.AddValidater(textBox1, new NClay.Windows.StringValidater(5 , 10), "请输入长度为5-10的字符串!");
        }

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-07-06
相关资源
相似解决方案