Bondhan Novandy
Bondhan Novandy

Reputation: 392

Aligning Label and TextBox in C# winform

Text in the Label is higher than TextBox

In the image above the text in the label is higher than the TextBox on the right.

I have looked at the control properties but I could not find how to align the label text with the text box correctly so that they will be aligned in the center/middle together.

Is there any settings in the properties I need to do?

Upvotes: 1

Views: 3855

Answers (1)

Wilbur Omae
Wilbur Omae

Reputation: 314

In the visual studio designer, for each row: 1. Select the textbox 2. Holding shift, select the corresponding label 3. On the toolbar, alignment options will become enabled. Click on align middles.

Repeat the above for the other rows.

Upvotes: 2

Related Questions