delete last character in string vb.net code example Example: remove last character from string c# myString = myString.Substring(0, myString.Length-1);