Solved

Localization : set RightToLeft property for all textboxes in the application

Posted on 2011-03-23
1
537 Views
Last Modified: 2012-05-11
I currently set the application culture in appsetting via
Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture);
This forces the application to use the appropriate resource file for the selected culture.

However currently I need to go to each individual winform and set the RightToLeft property to Yes for cultures that the script is written from right to left.

Is there a way to globally set all inputs such as textboxes to have their  RightToLeft  property?
0
Comment
Question by:Berico
1 Comment
 
LVL 11

Accepted Solution

by:
lenordiste earned 250 total points
ID: 35202100
I don't think this can be done with winforms. This feature however comes out of the box with WPF: when you specify a local, your controls will have the correct RightToLeft behavior without any additional work.

if you are stuck with winforms you can still look for 3rd party controls which handles this feature:
http://www.telerik.com/products/winforms/getting-started/right-to-left-support.aspx
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now