Can anyone tell me what Im doing wrong here? Id like to take out every other '\n'. Also the "count" is the number of lines in the richtextbox.
for (int i=0;i<=count;i++)
{
char t = '\n';
if (i % 2 == 0)
{
richTextBox1.Text.IndexOf(t,i,1);
}
}
"Success consists of going from failure to failure without loss of enthusiasm."
Winston Churchill~
for (int i=0;i<=count;i++)
{
char t = '\n';
if (i % 2 == 0)
{
richTextBox1.Text.IndexOf(t,i,1);
}
}
"Success consists of going from failure to failure without loss of enthusiasm."
Winston Churchill~