TextBox ctrl = sender as TextBox; if (ctrl.Length > 200) { ctrl.Text = ctrl.Text.Substring(0,200); } labelCtrl.Text = string.Format("{0} of 200 characters", ctrl.Text.Length);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)