我的代码如下:
private void btnTest_Click(object sender, EventArgs e)
{
string strScore;
int intScore;
bool blnInput;
strScore = txtIput.Text;
blnInput = Int32.TryParse(strScore, out intScore);
if (blnInput == false)
Debug.WriteLine("Input does noe evaluate an integer");
else if (intScore >= 0 && intScore <= 100)
Debug.WriteLine("You input a number in (0-100)");
else if (intScore < 0)
Debug.WriteLine("Test Score cannot be less than zero");
else if (intScore > 100)
Debug.WriteLine("Test Score cannot be greater than 100");
Debug.WriteLine("This line will always print"); }按住Ctrl+F5运行后,显示windows页面,label文本框输入不进数据。请问各位怎么办呀?
private void btnTest_Click(object sender, EventArgs e)
{
string strScore;
int intScore;
bool blnInput;
strScore = txtIput.Text;
blnInput = Int32.TryParse(strScore, out intScore);
if (blnInput == false)
Debug.WriteLine("Input does noe evaluate an integer");
else if (intScore >= 0 && intScore <= 100)
Debug.WriteLine("You input a number in (0-100)");
else if (intScore < 0)
Debug.WriteLine("Test Score cannot be less than zero");
else if (intScore > 100)
Debug.WriteLine("Test Score cannot be greater than 100");
Debug.WriteLine("This line will always print"); }按住Ctrl+F5运行后,显示windows页面,label文本框输入不进数据。请问各位怎么办呀?
lab你可以根据你按下的哪个键
在给lab赋按的键的值 以达到输入的效果,像输入手机号码一样。
懒得说了