Question create a control (like textbox or button) with different base

pooya1072

Well-known member
Joined
Jul 5, 2012
Messages
84
Programming Experience
Beginner
hi
in right to left Languages we must align controls from right in a form . (Specially , the problem appear in dynamic control creating) . generally , controls put on form from its base (left corner of control) . is there a way to create a control with right corner base?
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,375
Location
Norway
Programming Experience
10+
Control.RightToLeft Property (System.Windows.Forms)
The RightToLeft property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control.
You should set the form RightToLeft property to Yes. Controls added, both in designer and at runtime, will then have their RightToLeft properties set to Yes as well.

Form controls RTL alignment (mirror layout) is set with form property RightToLeftLayout to True (when also RightToLeft=Yes).
 
Top Bottom