I think many people are facing trouble with creating a transparent label over a gradient background painted control.
This article illustrates an approach to showing transparent Labels in a Windows based application. uLabelX control in this library has designed to be flexible and stylish in their look. First of all, they support border shapes, Images and parent controls with gradient backgrounds, Images you have associated with control can be drawn in Alpha Blended form. Texts in the control can be drawn with advanced effects. All these attraction can also be personalized for different states of the controls.
Using the code
The project contains the following files
BorderStyles.vb (Specifies the border style of the Control)
ImageSizes.vb (Specifies the Image Size of the Control)
uLabelXDesigner.vb (Specifies the class used to implement design-time services for the control)
uLabelX.vb (Specifies the custom Control Class)
The Control Class uLabelX Inherited from the base class Control
Public Class uLabelX
Public Sub New()
AddHandler Me.PropertyChanged, AddressOf OnPropertyChanged
Protected Event PropertyChanged(ByVal _RecreateHandle As Boolean)
Method Invoked when Property Changed
Private Sub OnPropertyChanged(ByVal _RecreateHandle As Boolean)
If (_RecreateHandle = True) Then Me.RecreateHandle()
Happy programming !!!