简体   繁体   中英

Aligning Label and TextBox in C# winform

标签中的文本高于文本框

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM