Solved

ensure vb.net label is shown in centre of panel

Posted on 2016-08-02
2
24 Views
Last Modified: 2016-08-02
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
Comment
Question by:PeterBaileyUk
2 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
Comment Utility
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
 

Author Closing Comment

by:PeterBaileyUk
Comment Utility
thank you
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now