subscript in textbox

  • Thread starter Thread starter Chance Hopkins
  • Start date Start date
C

Chance Hopkins

Anyone know if it's possible to make subscript or superscript font
decoration in a textbox (or fake it somehow)?

I can't find anything on it. I'm afraid it's built in and I'm the only
person that doesn't know. :-)
 
You could perhaps use a Font that has a character that fits your needs.
You'd have to check what fonts are on your device and what each one can
show.

Cheers
Daniel
 
Thanks for the reply. I've been looking into this and it looks like (if I
can find the right font) I could use PrivateFontCollection on the main
framework to load it from an embedded resource at run time. I don't think I
can do this in the compactframework.

I just need to find a "scientific" font of some type, so I can have all
numbers sub and super (+ and - would help also). Right now I can get 1,2 and
3 but no others. I'll have to keep digging.

Thanks again for the reply.
 
Well, you can draw that sort of thing yourself, but I don't think that
you're going to be able to achieve it with a simple text box (at least not a
general solution where you might have 10^7 or ^8, etc.) No font is going to
have all ten numbers in super and subscript form. You really need to be
able to mix font styles and ordinary EDIT controls don't do that. The
RichEdit control should be able to do it, I think, but I've never tried
subscripts, specifically.

Paul T.
 
Back
Top