I am creating a help file that uses xml as a source.
The xml file is in the project resource. Which will be read by using XmlNode.InnerText.
private void displayHelpText(string strTitle)
{
XmlNode xmlNode;
string strHelp;
xmlNode = XmlDoc.SelectSingleNode("//*[title='" + strTitle + "']");
strHelp = xmlNode.InnerText;
//strHelp = xmlNode.InnerXml;
richTextBox1.Text = strHelp;
}
The text I want to bolden in the xml file.
<Introduction>
<title>Account Password</title>
The default password is <b>12345678</b>
</Introduction>
The result is that the password is not bolden in the richtextbox. Is there any way to preserve styling?