2024年1月24日发(作者:)

using System;

using c;

using entModel;

using ;

using g;

using ;

using ;

using ;

namespace TextBox控件中判断用户输入的是否是数字

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)

{

string str1 = ();

string str2 = ();

for (int i = 0; i < ; i++)

{

if (!er(str1[i]))

{

if (("请输入数字!", "提示", el,

g) == )

{

//();

();

All();

return;

}

}

}

for (int j = 0; j < ; j++)

{

if (!er(str2[j]))

{

if (("请输入数字", "提示", el,

g) == )

{

//();

();

All();

return;

}

}

}

}

private void textBox3_TextChanged(object sender, EventArgs e)

{

string str3 = ();

for (int i = 0; i < ; i++)

{

if (!er(str3[i]))

{

= ;

//if (("请输入数字", "提示", el,

g) == )

//{

// ();

// All();

// break;

//}

}

}

}

}

}