Quote:
Originally Posted by xStylo
It was supposed to change color when i write Blue after Red.
But it don't do.
I have to remove all text and write Blue.
Any clue? 
|
This is a general C# programming question that has nothing to do with CO2.
In the future, you should provide detailed instructions on what you're trying to accomplish before we waste our time solving your simple problems which could have been fixed by searching Google for certain keywords.
You should have known that the equality operator used on a string tests the entire contents of that string, so of course you won't get blue text if you're looking for the text they wrote after everything else. You need to start from the beginning, and learn C# again, IMHO.
If you want to test is a string ends with another string, then take a look at the

for a possible solution to your problem.