RightToLeftAutoMirrorImage, what’s that?

It’s a mouthful, but we wanted to provide descriptive words for this property. This property is in the Strip controls, the MenuStrip , ToolStrip , StatusStrip , and ContextMenuStrip controls, in WinForms. When you set RightToLeft=Yes, your strip control items are automatically rearranged from right-to- left. Even more, there is an additional property for the…

0

Detecting RTL Cultures

When you develop Arabic\English applications you are bound to change you may change the Forms direction to rtl, programmatically at runtime or (1) according to user settings or (2) according to the detected OS culture.  According to user settings is straightforward but what about change it according to the detected OS. As the application loads…

0

Text Rendering

There are numerous classes presented by GDI+ and GDI for rendering text on Windows Forms. The GDI+ Graphics class has several DrawString methods that allow you to specify various features of text, such as location, bounding rectangle, font, and format. In addition, you can draw and measure text with GDI using the static DrawText and…

2

Enabling ASP.NET site for RTL

I had a question from a friend about how to enable an ASP.NET site for right-to-left languages. I know what needs to be done and I published, over the years, some useful resources and small bit and pieces but I started of with Bing. What did I find? I found many questions from people who…

3

Arabic Windows Forms Applications

This is another article that I wrote earlier about Arabic WinForm applications. I’m republishing it for your reference. I hope you enjoy it too. You are sometimes faced with some challenges to develop Arabic applications. Most of these issues are due to the fact that Arabic is a right-to-left (rtl) language, where the letters are…

1

When should you set RightToLeftLayout and RightToLeft?

I got a question from a previous post, about when should we set RightToLeftLayout, and RightToLeft in the code. His scenario is as follows: He has a multi lingual Windows Forms application. In the case of Arabic, he sets RightToLeft at runtime, depending on a value in his resources. If his UI is English then…

0

Detecting if your LocaleCulture is RightToLeft

I got several questions about how to know if the locale\culture is right to left. Arabic is not the only RTL language, there is Farsi, Urdu, Dari, some Chinese and Indian scripts, to name some. There are several techniques but after many trials these are my best picks. In managed code there is a property…

1

Hotfix for your RTL VB 6 applications, for Win 7

You moved to Windows 7 and tried to deploy and install Arabic or right-to-left VB6.0 application on this environment.   The VB 6.0 applications is working but with some exceptions.   Some symptoms of the issues: •        In VB 6IDE the devs are not allowed to set RighToLeft=True. •        Menus are Left aligned and is…

5

FlowDocumentReader Arabic strings

I had a customer question about how to use FlowDocumentReader in WPF, for Arabic text. I thought this was a good opportunity to share with you this short sample. This is a FlowDocumentReader that displays an Arabic FlowDocument. I included diacritics in the strings to make it more illustrative. To make sure that your document…

0

DataGridView with RTL Columns

I had an interesting customer scenario, which is common among developers that deal with more than language. Basically you have an English WinForm application that uses the DataGridView , but you have the Names field in Arabic. So, you want to keep the DataGridView in English , but change one column only to right-to-left. I…

4