label1.text = "123456789";
label1.text = "12345...";
label1.AutoEllipsis = true;
string str = "123456789"; if (str.Length > 5) { label1.Text = string.Concat(str.Substring(0, 5), "..."); } else { label1.Text = str; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)