How to Detect New Line character

  • Thread starter Thread starter Thejan Mendis
  • Start date Start date
T

Thejan Mendis

Hi all,

I need to check whether my richtextbox contain any blank line. the source I
try to used in below. but it not reflect the output I need. basically I
need the collect the paragraph by paragraph text in a the rich text box to a
string array.

THEJAN




// Source
for(int counter=0; counter < tempArray.Length;counter++)
{


string mask = "\r\n";


if (tempArray[counter] == mask)

{

MessageBox.Show("Bingo I found a Blank Para Separation");


}

else

{

//MessageBox.Show(tempArray[counter]);

MessageBox.Show("No New Line Found..");

}


}
 
I found on the Microsoft site a MSDN TV show done by 'Alex
Kipman' which showed how MSBuild works, the link is
http://msdn.microsoft.com/msdntv/episode.aspx?
xml=episodes/en/20040122VSNETAK/manifest.xml

Basically Whidbey is totally integrated with MSBuild so
you only now need to understand the MSBuild script.

Thanks,
 
Back
Top