views:

170

answers:

3

i am a new windows application programmer and have a right-to-left language.
i want write my own app in rtl lang. how can i perform this?
should i set RightToLeft peroperty for any controls in forms to Yes or true?? this is very harmful!!
can I set something to convert and set controls to rtl? can i do some settings in "Settings.settings" file in properties folder?

+1  A: 

The FlowLayoutPanel control arranges its contents in a horizontal or vertical flow direction. The FlowLayoutPanel control correctly reverses its flow direction in right-to-left (RTL) layouts. Any Windows Forms control, including other instances of FlowLayoutPanel, can be a child of the FlowLayoutPanel control. Given this, you should be able to control the flow direction of all of your controls with a single setting, provided they reside within a FlowLayoutPanel.

Robert Harvey
A: 

Just set

RightToLeft = true

for any control where this is important (anything containing text I imagine)

Tim
A: 

See MSDN documentation for Control.RightToLeft and Ambient Properties

All you really have to do is set it on your form and its controls should take care of themselves. It's apparent on the simple case of a TextBox on a Form where the Form's RightToLeft property is set to Yes.

Austin Salonen