Alignment of Items in GroupBox

前提是你 提交于 2019-12-04 06:38:34

问题


I have been looking around for a solution to this but fail to find it anywhere.

I am currently making a management program for an organization which handles kids with special needs. They need to keep track of a lot of data, etc.

I have placed the data in a GroupBox with TableLayout using Drag N' Drop. However the elements do not align. The left side seems to be docked in the upper left corner of a cell while the right side seems to be docked in the lower right corner of a cell.

How would I solve this so they are both centered in their respective cell?


回答1:


The alignment of controls placed in a TableLayout cell can be influenced by the anchor setting of these controls.

You can align your controls Middle-Center by setting the Anchor property of your Labels and TextBoxes to None.



来源:https://stackoverflow.com/questions/19406574/alignment-of-items-in-groupbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!