Today, We will discuss about "Delete Last Character from String" using C#.Net
String varLength;
if (textBox1.Text.Length > 0)
{
varLength = textBox1.Text.Substring(0, textBox1.Text.Length - 1);
textBox1.Text = varLength;
}
No comments:
Post a Comment