Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2008

Tip: Looking for answers? Try searching our database.

Problems with UNICODE Characters for superscript 4,5,6,7,8,9

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alonso - 04 Mar 2008 14:09 GMT
Hi,

We have an application that has its own character map. Everything is working
fine until yesterday. We got a new requirement which was to add superscript
numbers from 0-9. Numbers 1,2,3 are display correctly.

The issue is the 0, 4-9. With those characters I got the square on my Rich
Text Box.

The funny thing is, if I copy/paste one of them from Windows Character Map,
after that all character will work using our character map.

The way I'm passing the characters from our C.M to the Rich Text Box is the
follow:

Clipboard.SetText(CType(sender, UIButton).Text, TextDataFormat.UnicodeText)

and

Me.m_CurrentRTB.Text =
Clipboard.GetData(System.Windows.Forms.DataFormats.UnicodeText)

Does anyone had this issue before?

Thanks for the help

Alonso
Morten Wennevik [C# MVP] - 07 Mar 2008 06:36 GMT
Hi Alonso,

Only 1, 2 and 3 are more commonly supported in most fonts as they are used
indicating squared, cubed numbers (not sure what 1 is used for).  When you
paste these characters you are most likely adding font information so for
these characters the fonts are changed.  Try setting the Font used by the
RichTextBox to the same font you found in the character map containing the
other superscript numbers.

Signature

Happy Coding!
Morten Wennevik [C# MVP]

> Hi,
>
[quoted text clipped - 23 lines]
>
> Alonso
Deepak ray - 22 Oct 2008 12:26 GMT
ChrW (8308) is for 4 and set "Lucida Sans Unicode" font type.
more information about unicode characters visit this site http://www.alanwood.net/demos/wgl4.html
Jeff Johnson - 23 Oct 2008 20:43 GMT
> ChrW (8308) is for 4 and set "Lucida Sans Unicode" font type.
> more information about unicode characters visit this site
> http://www.alanwood.net/demos/wgl4.html

??? Were you trying to reply to someone? Because you started your own thread
instead.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.