OmniOwl
OmniOwl

Reputation: 5709

Alignment of Items in GroupBox

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

Upvotes: 0

Views: 2987

Answers (1)

user1064248
user1064248

Reputation:

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.

Upvotes: 1

Related Questions