private
{
#region
tempArray = txtBody.Lines;
Op += currentWord.Insert(maxLength, "\r\n");
}
currentLine += currentWord + " ";
currentLineLength += currentWord.Length +1;
Op +=currentLine.Insert(currentLineLength, "\r\n");
currentLine = currentWord + " ";
currentLineLength = currentWord.Length;
Op += currentLine;
PrevSel++;
change =
Op += tempArray[cou] + "\r\n";
txtBody.Text = Op;
txtBody.SelectionStart = PrevSel;
#endregion
the above code is for text change event, in c# for word wrap, where user can specify no. of char per line.
There is bit of problem in this ,
suppose user enter 3-4 lines like:
"this is trial msg plz ignore this.
this is trial msg plz ignore this.
this is trial msg plz ignore this."
now if he comes back to 1st line and enter text in between then problem occur.
plz anyone who can help , i need it really badly.