Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
620
ultralabel with transparent BG
posted

Hi,

i read a lot of post in this forum, about the true transparent BG in a label, but i dont resolve the problem.

with a "normal" label

    Inherits System.Windows.Forms.Label
    Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
        Get
            Dim cp As CreateParams = MyBase.CreateParams
            cp.ExStyle = cp.ExStyle Or &H20 ' color Transparent
            Return cp
        End Get
    End Property


    Public Sub New()
        Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)

    end sub

its work, but i want use ultralabel, cause i need alpha too and other properties that the ultralabel have.

i try to replace Inherits System.Windows.Forms.Label with Inherits Infragistics.Win.Misc.UltraLabel but dont work

the background is black and i dont understand why.

can u help me? tks a lot