Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
pls how can i do superscript and subscript on richtextbox windows forms c sharp
Posted

Have a look at the SelectionCharOffset[^] property.
 
Share this answer
 
hi,

set
for subscript :richTextBox1.SelectionCharOffset = -10;
for superscript: richTextBox1.SelectionCharOffset = 10;
for base line :richTextBox1.SelectionCharOffset = 0;

where richTextBox1 is richtextbox control

have happy coding
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900