According to MSDN
form.RightToLeftLayout = True; form.RightToLeft = ifWeWantRTL() ? RightToLeft.True : RightToLeft.False;
enough to mirror the contents of the form for RTL languages.
But placement control only becomes mirrored for controls immediately in the form,
those inside a GroupBox or Panel are not mirrored unless I put them in a TableLayoutPanel or FlowLayoutPanel fisrt.
This is a lot of manual work on placing a TableLayoutPanel inside each GroupBox, and especially for changing controls (one control per table cell, padding, edge, etc.)
Is there an easier way to do mirroring for all controls?
Or at least how can I get around the redistribution step, since it is a rather difficult task with our number of forms?
Edit : The RightToLeft property for each control is inherited by default,
therefore, panels and group boxes always have the necessary RightToLeft settings.
However, I tried to reassign it for them both programmatically and from the designer, it did not help.
eugensk00
source share