日期:2014-05-20 浏览次数:20769 次
private void text_content_TextChanged(object sender, EventArgs e) { int count=Encoding.Unicode.GetByteCount(text_content.Text)/ 64; Convert.ToInt32( textBox_charnumber.Text =count);//如何在textBox_charnumber.Text 显示输入内容的字节大小? for (int i = 0; i < count; i++) { btn[i].BackColor = Color.Green; } }