//...
else if (comboBox1.SelectedItem.ToString().Equals("ar"))
{
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("ar");
label1.RightToLeft = label2.RightToLeft = RightToLeft.Yes;
label1.Text = FormLabels.test1;
label2.Text = FormLabels.test2;
}
UPDATE
if you have many many labels, there are some solutions here:
You can define a class such as called RighToLeftLabel and use it to declare all your labels:
public class RightToLeftLabel : Label { public RightToLeftLabel(){ RightToLeft = RightToLeft.Yes; } } //Then declare your labels: RightToLeftLabel label1 = new RightToLeftLabel(); RightToLeftLabel label2 = new RightToLeftLabel(); RightToLeftLabel label3 = new RightToLeftLabel(); //you can also drag-n-drop this custom Label from the ToolBox (remember to place the class in your project namespace and build first, after that you will see there is a RightToLeftLabel control at the very top in the ToolBox)
You can loop though the collection of your Labels and change
RightToLeft
toYes
for each one:foreach(Label lbl in yourLabels) lbl.RightToLeft = RightToLeft.Yes; //I think this is right for you because the project language may change...