congo » Сб сен 16, 2017 10:53 pm
The problem code is here
Код: Выделить всё
private void buttonEditSave_Click(object sender, EventArgs e) {
string str = "";
for (int i = 0; i < this.EditTextBox.Lines.Count<string>(); i++)
{
str = string.Concat(str, this.EditTextBox.Lines[i], '\n');
}
this will add "\n" new line for each line in the text box, but it should not add it for the last line.
As i dont have the source is it possible to fix that and upload?
The problem code is here
[code] private void buttonEditSave_Click(object sender, EventArgs e) {
string str = "";
for (int i = 0; i < this.EditTextBox.Lines.Count<string>(); i++)
{
str = string.Concat(str, this.EditTextBox.Lines[i], '\n');
}[/code]
this will add "\n" new line for each line in the text box, but it should not add it for the last line.
As i dont have the source is it possible to fix that and upload?