I am developing an application that needs some kind of subscript and superscript support to display text that refers to chemical formula, if I do it in a textbox (winforms) and want for example show water formula, it would appear as H20 rather than H(subscript 2)O (sorry I coudn’t find how to do it here). How could this be done? Thanks.
I am developing an application that needs some kind of subscript and superscript support
Share
Run the Windows Charmap.exe applet. Tick the Advanced view checkbox and in the Search for box type “two”. You should see the “Subscript two” glyph, Unicode codepoint ‘\u2082’. Click Select and Copy. Switch to your code or the Properties window and type “H” + Ctrl+V + “O” to get “H₂O”.