Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
GeneralcheckedListBox Line Spacing Pin
interlocked25-Apr-04 13:42
interlocked25-Apr-04 13:42 
GeneralRe: checkedListBox Line Spacing Pin
Heath Stewart25-Apr-04 17:50
protectorHeath Stewart25-Apr-04 17:50 
Generaldates reminder from database Pin
kings_125-Apr-04 13:30
kings_125-Apr-04 13:30 
GeneralRe: dates reminder from database Pin
Heath Stewart25-Apr-04 17:44
protectorHeath Stewart25-Apr-04 17:44 
GeneralRe: dates reminder from database Pin
kings_126-Apr-04 2:09
kings_126-Apr-04 2:09 
GeneralRe: dates reminder from database Pin
Heath Stewart26-Apr-04 3:02
protectorHeath Stewart26-Apr-04 3:02 
GeneralWeb control Pin
osto25-Apr-04 9:22
osto25-Apr-04 9:22 
GeneralRe: Web control Pin
Mazdak25-Apr-04 9:31
Mazdak25-Apr-04 9:31 
GeneralRe: Web control Pin
osto25-Apr-04 9:56
osto25-Apr-04 9:56 
GeneralRe: Web control Pin
Heath Stewart25-Apr-04 17:41
protectorHeath Stewart25-Apr-04 17:41 
GeneralGlobal Variables Pin
STW25-Apr-04 9:19
STW25-Apr-04 9:19 
GeneralRe: Global Variables Pin
kobyb25-Apr-04 9:24
kobyb25-Apr-04 9:24 
GeneralRe: Global Variables Pin
Colin Angus Mackay25-Apr-04 9:55
Colin Angus Mackay25-Apr-04 9:55 
GeneralC# with MFC Pin
kobyb25-Apr-04 9:18
kobyb25-Apr-04 9:18 
GeneralRe: C# with MFC Pin
osto25-Apr-04 9:57
osto25-Apr-04 9:57 
GeneralRe: C# with MFC Pin
Tom Larsen25-Apr-04 16:46
Tom Larsen25-Apr-04 16:46 
GeneralRe: C# with MFC - Code Pin
kobyb26-Apr-04 11:09
kobyb26-Apr-04 11:09 
GeneralRe: C# with MFC - Code Pin
osto26-Apr-04 15:56
osto26-Apr-04 15:56 
GeneralRe: C# with MFC - Code Pin
kobyb28-Apr-04 10:03
kobyb28-Apr-04 10:03 
Questionhow to change workingarea?? Pin
foof1ghter25-Apr-04 8:45
sussfoof1ghter25-Apr-04 8:45 
AnswerRe: how to change workingarea?? Pin
ian mariano25-Apr-04 14:23
ian mariano25-Apr-04 14:23 
AnswerRe: how to change workingarea?? Pin
Heath Stewart25-Apr-04 17:38
protectorHeath Stewart25-Apr-04 17:38 
Generalsubscript text Pin
Stefan Troschuetz25-Apr-04 6:58
Stefan Troschuetz25-Apr-04 6:58 
GeneralRe: subscript text Pin
Heath Stewart25-Apr-04 7:56
protectorHeath Stewart25-Apr-04 7:56 
There are several ways. One is through markup like with HTML that uses the <sup> and <sub> tags. I doubt that's appropriate here, however.

Another is to get a font that is full of these. It's not uncommon to have a font represent symbols. Microsoft uses several fonts for glyphs in Outlook and other applications.

Since .NET supports Unicode, there is the superscript and subscript diacritics in the U+2070 through U+209F range. The problem is that you need a font that supports them. Tahoma (default font) and Arial Unicode MS currently do not, nor do any of the other common ones. If you had a font that supported this Unicode range and displayed the text in a TextBox (for example), then you could use:
"n\u2081 + n\u2082 ="
Finally, about your only other option is to owner-draw the text yourself in parts using Graphics.DrawString and either off-setting the coordinates of the upper-left corner or using a StringFormat with a LineAlignment set accordingly.

 

Microsoft MVP, Visual C#
My Articles
Generalsending xml bitween client, server win app Pin
hmdhmd24-Apr-04 22:08
hmdhmd24-Apr-04 22:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.