Infuriating isn't it ?

The reason is that the 'Label' control isn't actually a 'window' (like all normal controls). The Label is drawn onto the form / container at runtime and has the properties applied to it that you chose at design time. Windows then passes the paint message onto the other controls that simply draw over the label.

The only way around this is to create your own 'Label' control in VB using either a PictureBox (containing a label - the lazy way), or by creating a new Usercontrol project for your new label.


Chris Eastwood

CodeGuru - the website for developers
http://codeguru.developer.com/vb