Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# RichTextBox rtl
Hello, Guys!
 
I'm developing a multi-language text editor with RTL scripting support.
I have a problem with Thaana scripting Dhivehi (Maldivian) language.
 
When I read or paste some Maldivian text to the RichTextBox control
I have the same text but with wrong letters order.
 
This problem is present only for Thaana scripting and only in the RichTextBox control.
 
I tried to use MPH 2B Damase and TITUS Cyberbit Basic fonts, but the result is the same.
All other RTL langs (Arabic, Hebrew, Urdu) look properly.
 
I have already tried:
 
textBox1.LanguageOption = RichTextBoxLanguageOptions.DualFont; // and others
 
this.RightToLeft = RightToLeft.Yes; // this = Form1 with RichTextBox
this.RightToLeftLayout = true;
 
this.textBox1.RightToLeft = RightToLeft.Yes;
 
But RichTextBox does not draw Thaana texts properly. It draws it in same letters order as LTR script languages. But Hebrew and Arabic look properly with same fonts!
 

Thanks for any suggestions.
Posted 27-Jan-13 0:00am
Edited 27-Jan-13 4:28am
v3
Comments
Bernhard Hiller at 6-May-13 3:37am
   
When does the problem occur? When you do a Copy&Paste from other sources (which ones?) only? Or when you type with your keyboard? Or when you set the text via rtb.Text="މައި_ޞަފްޙާ"? Or something else?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

how you write Urdu in richtextbox
show the code
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 878
1 OriginalGriff 410
2 CPallini 275
3 George Jonsson 226
4 Richard Deeming 145
0 OriginalGriff 5,450
1 CPallini 4,500
2 Sergey Alexandrovich Kryukov 4,482
3 George Jonsson 3,057
4 Gihan Liyanage 2,445


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 5 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100