c# - How to write superscript in a string and display using MessageBox.Show()? -
i trying output area using message box, , should displayed as, example, 256 unit^2...
how can write superscript (for powers) , subscript (like o2 oxygen)???
this guy here adds superscript (tm):
i hope got myself clear! in advance , sorry inconvenience...
you try using unicode super/subscripts, example:
var o2 = "o₂"; // or "o\x2082" var unit2 = "unit²"; // or "unit\xb2"
if doesn't work, i'm afraid you'll need to write own message box.
Comments
Post a Comment