I am using Visual Basic 2008:
I have a type of word processing program that uses a Rich Text Box and it colors specific text within the file it has open. On the form, there are colored panels that, when someone moves their mouse over, give a tooltip that tells what the text of a specific color designates. What I want to do is store a string with the text file that provides these specific color designations, i.e.:
storedString = color1 - "bla-bla-bla", color2 - "bla-bla-bla,", color2 - "bla-bla-bla,", etc.
more likely just:
storedString = "bla-bla-bla", "bla-bla-bla,", "bla-bla-bla," etc.
However, I do not want to store it in the registry, because each file will have unique designations. I want to store it with the text file in some way, but I do not want the user to see it. So if I create the text file and I later edit it, maybe change the colors around and change the color designations, that information is automatically stored with the text file. What would be the best method to use for doing this?