在设计winform窗体的时候怎么才能让textbox控件只能输入数字呢

日期:2022-04-05 14:59:40 人气:1

在设计winform窗体的时候怎么才能让textbox控件只能输入数字呢

private bool valudateInfo(textbox str)
{
str = textBox1.text;
int result = 0;
if (int.TryParse(str, out result) == true)
{
    A+
热门评论