I'm trying to use a RichTextBox to display the revsion history of my program, and I can't figure out how to format the text (bold, italic, etc.). I'm using the String Collection Editor in the Lines Property.
Anyone know how to do this, or if I should be using a RichTextBox in the first place?
I'm loading manually. Every time I change something I'd like to add a note describing that change so that the end users can see what was changed since the previous rev. Adding the text is no problem, I just don't know how to format it (bold etc).
I presently have working code that displays a form containing the rich text box when someone clicks Help > Revision History.
What you could do is start a .rtf file, wordpad will do. Add your changes there and populate the richtextbox from that file. Formatting probably shouldn't be too fancy, maybe the version number in bold large font and the changes, in a lighter smaller font, as a list underneath. You could even import that as an embedded resource, so that a separate file won't have to be shipped with your app.
You could even import that as an embedded resource, so that a separate file won't have to be shipped with your app.
Create the file. I like to save it in the resource folder of the project, this way you can open it while in VS. Go to your project properties. Click the Resource tab and add that file.
To fill the richtextbox use richTextBox1.Rtf = Your_App.Properties.Resources.Your_Document;
Also, is that the standard way to do something like this? I don't want to re-invent the wheel.
I'm not sure sure about standard, but this way you can still update it, the file is hidden from general view, and any other way of doing it would require more coding. I don't think it can get any simpler than this.