Alignment

Labels allow both horizontal and vertical allignment (text boxes only have horizontal). However for it to be any use you need to set the minimum size property for the label.

Fast Updating

Labels are not as good for fast updating values – redraw flickering with large arrays of them

Multiline Labels

You can use "\n" within label strings to cause a new line (or when setting in properties open the drop down text editor and use return) but there is not an auto wrap to new line.  For this use a read only text box, and stop if being selectable using this.

Transparent Background

Its not supported, setting it to transparent is often ignored.  This is a win forms issue generally, not just label text.  There are some work around hacks if you can't just use a background colour to match the background on the layer below but its not simple. 

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through resources like this. We hope you find it helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support here. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published. Required fields are marked *