Articles in this section
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.

Text alignment specified in ComboBoxAdv

Figure 1: Text alignment specified in ComboBoxAdv

 

View sample in github

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied