您好,我想显示输入到文本框中的字符数,我希望它在我键入时更新,我该怎么做?
这是我的:
int kk = textBox1.MaxLength;
int jj = //This is what I need to know.
string lol = jj.ToString() + "/" + kk.ToString();
label2.Text = lol;
最佳答案
怎么样
int jj = textBox1.Text.Length;
还是我遗漏了什么?
关于c# - 使用 C# 确定输入到文本框中的字符数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9956382/