RTF Boxes

boycy used Ask the Experts™
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
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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 :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial