如果文本框输入内容超过十个字符,就取前十个字符加...
private void textBox1_TextChanged(object sender, EventArgs e)
        {
            if (textBox1.Text.Length > 10)
                textBox1.Text = textBox1.Text.Substring(0, 10) + "...";
        }