문제

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?

cells not aligning correctly

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top