Anybody know how to have a power factor in text..

100 m2 etc..

is it a unicode character?

thanks

Recommended Answers

All 3 Replies

In text the power sign is normally given by the ^ character (above your 6 on the keyboard. E.g. 10^2 = 100.
Using a word processor the 2 would generally be turned into superscript which places it above the other characters and smaller.
In HTML you can use the <sup></sup> tag or use a CSS class.

Is that what you are after?

great!. thanks, was needing the html tags..

this.richTextBox11.SelectionCharOffset = 7;

will grab the selected text, and place it 7 (pixels? i think) above the original text...

this value is from -2000, to 2000.. positive meaning super, negative being sub.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.