Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,446 of 10,840    |
|    Rick Rothstein to All    |
|    Re: String question    |
|    28 Apr 05 22:48:09    |
      From: rickNOSPAMnews@NOSPAMcomcast.net              > Is there a way to superscript a single character in a string       > for example to show a number raised to a exponent ?       >       > Eg       >       > lblResult.Caption = " 52 in4 "       >       > Where the 4 would be superscripted ?              No, not using a Label (or TextBox for that matter). You can do what you       ask using a RichTextBox though.              With RichTextBox1        .Text = " 52 in4 "        ' Select the character(s) to superscript        .SelStart = 6        .SelLength = 1        ' Set the amount of offset in TWIPS        .SelCharOffset = 75       End With              Rick - MVP              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca