ALX
Well-known member
In a User Control I have about a dozen labels. On just a few of these labels I want to be able to produce some graphics. I can create graphics anywhere on this user control except on top of the labels. I can set the entire user control to 'userpaint' with the 'setstyle' method but not the labels. If I try to set the labels to 'userpaint'...
I get the following error:
'System.Windows.Forms.Control.Protected Sub SetStyle(flag As System.Windows.Forms.ControlStyles, value As Boolean)' is not accessible in this context because it is 'Protected'.
Can anyone enlighten me on how to put graphics on top of a label ?
VB.NET:
Label1.SetStyle(ControlStyles.UserPaint, True)
'System.Windows.Forms.Control.Protected Sub SetStyle(flag As System.Windows.Forms.ControlStyles, value As Boolean)' is not accessible in this context because it is 'Protected'.
Can anyone enlighten me on how to put graphics on top of a label ?