Category / Section
How to specify text alignment in WinForms ComboBoxAdv?
1 min read
In ComboBoxAdv, you can specify the text alignment by using its TextAlign property. The following code example illustrates the same.
C#
this.comboBoxAdv1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
VB
Me.comboBoxAdv1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
The following screenshot illustrates the output.
Figure 1: Text alignment specified in ComboBoxAdv