RTF Boxes

how do you make text in a rich text box superscript or subscript.
the SELCHAROFFSET says that it should be a variant but it doesn't give any constants in the list and I can't find them anywhere else
Who is Participating?
rmichelsConnect With a Mentor Commented:
The SelCharOffset property will determine how far up or down from the baseline of the font, the selected text will move.

RichTextBox1.SelCharOffset = 60  will move the selected text UP by 60 twips.

RichTextBox1.SelCharOffset = -60 will move the selected text DOWN by 60 twips.

So there is no directory super or subscript constant, you can control how super or sub the text will be :)
All Courses

From novice to tech pro — start learning today.