h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Delete Last character in String

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