ensure vb.net label is shown in centre of panel

I have a grid made up of panels on each panel is a label, how do i ensure that the label is in the correct centre panel position so that when the label is shown (the text size varies a little) the text is in the centre.

the attached highlights whats happening
Who is Participating?
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
Make sure the AutoSize property of the Label is set to True, then set its Anchor property to None.  This should make it center both horizontally and vertically within its container.
PeterBaileyUkAuthor Commented:
thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.