4
Answers

How to change text color in c#

Hi all,
I have a string like
string mess="Success";
I want to change color of "Success" to green and write it to a log file.
I am able to write the normal text (that is in black color) in a file. But I am not able to convert the text color.
Could some body please help with the peice of code.
Thanks
Murali krishna.
Answers (4)
0
swilkinson

swilkinson

NA 48 0 20y
The client machines NEEDS the .net framework that your app was written with. You can get the resistibutable here http://www.microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en Install this and you should just be able to copy the exe onto the client and it will run. You can deploy it if you wish to have the add/remove program stuff. To do this in VS.Pro (sorry have not seen standard so it might not help). Start a new project and select setup and deployment and pick setup project. Then add the built exe you wish to deploy, you can also add registry and shortcust stuff with this windows installer project. The only thing I could not get it to do was to install the framework (something to do with windows installer using it!?!). We had to switch to install sheild and write a proper setup to bundle it in. Cheers, Si