I discovered the http://www.microsoft.com/middleeast/MSDN is now redirected to a new MSDN page. In the past I published some articles about Arabic developement that is still relevant to date. So I'll re-publish them through my blog. So I'll regularly add some of my existing articles to the blog and keep more Arabic resources in this blog. So the first article is about RightToLeftLayout.
RightToLeftLayout is a new property introduced in Visual Studio 2005, which would enable developers to take advantage of the advanced right-to-left (rtl) support of Windows. With the introduction of RightToLeftLayout we would like to obtain the same results as mirroring, using extended styles with fewer hassles. For more information on Mirroring check this article Implementing Mirror-Aware Controls for Windows Application with Visual Studio .NET
Facts about RightToLeftLayout:
The RightToLeftLayout property is associated with the following controls and this table describes the affect of setting RightToLeftLayout=true.
1 - The Form, while RightToLeftLayout
2 - Having owner drawn items, while RightToLeftLayout=trueIf you want to render text in controls, including a Form, while setting RightToLeftLayout to true, you need to use GDI, instead of GDI+. For example to display a string you need to use TextRenderer instead of DrawString. In the case when RightToLeftLayout is set to true, you don’t need to set the rtl TextFormatFlags because they are set by default.While RightToLeftLayout = true and RightToLeft=yeswould automatically calculate the left of the control from the right edge of drawing area and you don’t need to add the rtl flags.These are the code snippets: