You can use the (excellent) HtmlRenderer and create your own html-enabled shortcut control.
Here is an example:
public class HtmlPoweredLabel : Control { protected override void OnPaint(PaintEventArgs e) { string html = string.Format(System.Globalization.CultureInfo.InvariantCulture, "<div style=\"font-family:{0}; font-size:{1}pt;\">{2}</div>", this.Font.FontFamily.Name, this.Font.SizeInPoints, this.Text); var topLeftCorner = new System.Drawing.PointF(0, 0); var size = this.Size; HtmlRenderer.HtmlRender.Render(e.Graphics, html, topLeftCorner, size); base.OnPaint(e); } }
Usage example:
// add an HtmlPoweredLabel to you form using designer or programmatically, // then set the text in this way: this.htmlPoweredLabel.Text = "y = x<sup>7</sup> + x<sup>6</sup>";
Result:

Note that this code wraps your html in a div section that sets the font family and size of the one used by the control. Thus, you can change the size and font by changing the Font property of the label.
source share