Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to Display some output power value and base value as an example 2² or 3³ .I am developing an e -learning tool but i cant display some out put values mention above. Please help me.
Posted
Comments
Sergey Alexandrovich Kryukov 15-Jun-11 23:10pm    
First, tag it: Forms.
Explain where exactly you want to output it?
--SA

There are options:


  • For power values, use Unicode code points 0x2070 to 0x2079. Check up with the standard application "Character Map", Group By: Unicode Subrange: "Super/Subscript". Attention! Not all fonts support all characters; many support only powers 1 to 3 (like 2¹²³). For example, "Arial Unicode MS" supports them all. "Character Map" (Charmap.exe) is bundled with all Windows versions.
  • Use (read-only) RichTextBox; it supports superscripts. You can use WordPad to generate the RTF string you need (or a format template you will use later in your code).
  • Use HTML Label from this CodeProject article: A Professional HTML Renderer You Will Use[^]. On CodeProject, you will find some more HTML rendering components for Forms and WPF.



—SA
 
Share this answer
 
v6
Comments
RakeshMeena 16-Jun-11 0:04am    
Informative! My 5
Sergey Alexandrovich Kryukov 16-Jun-11 0:26am    
Thank you, Rakesh. More importantly, all three methods work.
--SA
CS2011 16-Jun-11 0:28am    
Good Answer. 5+
Sergey Alexandrovich Kryukov 16-Jun-11 0:32am    
Thank you.
--SA
RaviRanjanKr 16-Jun-11 1:21am    
Nice Answer SA, My 5 :)

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