How to Detect New Line character

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..");

}


}
 
B

BuddyWork

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top