Hi hi, yo yo!
Hi everybody, I'm using some code to make a transparent label, but as soon as I change the text or the text align properties the previous text remains intact! (like the image)
When I move it around though everything goes back to normal, but I'm wondering if there's something I can do to fix this issue.
The OnPaint method is overriden like this:
I tried using e.Graphics.Clear method but it doesn't work the way a want to.
Any ideas or solutions?
Thanks again!
Hi everybody, I'm using some code to make a transparent label, but as soon as I change the text or the text align properties the previous text remains intact! (like the image)
When I move it around though everything goes back to normal, but I'm wondering if there's something I can do to fix this issue.
The OnPaint method is overriden like this:
Code:
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
Try
MyBase.OnPaint(e)
e.Graphics.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAlias
e.Graphics.DrawString(Texto, MyBase.Font, vPincelDeColorDeTextoLabel, vPropiedadesDeRectánguloF, vFormatoDeTexto)
Catch vError As Exception
Exit Sub
End Try
End Sub
I tried using e.Graphics.Clear method but it doesn't work the way a want to.
Any ideas or solutions?
Thanks again!