Answered by:
Text With Subscripts, Superscripts. Mathematical Symbols

Hello:
I am thinking about writing an app for electrical engineering calculations using VB2013. I need to display text with superscripts and/or subscripts. Also, mathematical symbols would be required (square root etc). I have researched and I have looked at the Character Map but am confused.
Can anyone give me some help.
Thanks,
John
Question
Answers

Hello:
I am thinking about writing an app for electrical engineering calculations using VB2013. I need to display text with superscripts and/or subscripts. Also, mathematical symbols would be required (square root etc). I have researched and I have looked at the Character Map but am confused.
Can anyone give me some help.
Thanks,
John
John,
About the only thing that comes to mind for subscripts/superscripts is using Rich Text in a RichTextBox. You can set the subscript/superscript using the SelectionCharOffset.
As for the mathematical symbols, I'm not sure but I suspect that the RTB can support it.
Knowledge rests not upon truth alone, but upon error also. Carl Jung
 Proposed as answer by Cor Ligthert Tuesday, February 2, 2016 3:29 PM
 Marked as answer by Herro wongMicrosoft contingent staff, Moderator Monday, February 22, 2016 5:30 AM
All replies

Hello:
I am thinking about writing an app for electrical engineering calculations using VB2013. I need to display text with superscripts and/or subscripts. Also, mathematical symbols would be required (square root etc). I have researched and I have looked at the Character Map but am confused.
Can anyone give me some help.
Thanks,
John
John,
About the only thing that comes to mind for subscripts/superscripts is using Rich Text in a RichTextBox. You can set the subscript/superscript using the SelectionCharOffset.
As for the mathematical symbols, I'm not sure but I suspect that the RTB can support it.
Knowledge rests not upon truth alone, but upon error also. Carl Jung
 Proposed as answer by Cor Ligthert Tuesday, February 2, 2016 3:29 PM
 Marked as answer by Herro wongMicrosoft contingent staff, Moderator Monday, February 22, 2016 5:30 AM

Thanks Cor!
 Edited by Developer Dude Tuesday, February 2, 2016 4:38 PM

If you manage to use the new RichEdit 8 control in your form, then the mathematical expressions should be available:
 http://blogs.msdn.com/b/murrays/archive/2012/03/03/richedit80preview.aspx
 http://blogs.msdn.com/b/murrays/archive/2006/10/25/mathematicalrtf.aspx
 Edited by Viorel_MVP Tuesday, February 2, 2016 6:19 PM