• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 77
  • Last Modified:

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
Capture.JPG
0
PeterBaileyUk
Asked:
PeterBaileyUk
1 Solution
 
Mike TomlinsonMiddle 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.
0
 
PeterBaileyUkAuthor Commented:
thank you
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Tackle projects and never again get stuck behind a technical roadblock.
Join Now