A Form has 3 Labels. I want the 3rd Label to look like a hyperlink (clicking the 3rd Label opens another Form). Since I want the 3rd Label to look like a hyperlink, I have even made the cursor change to a hand & the Label underlined when the mouse is moved over the 3rd Label. The hand cursor resides in a resource file. This is the MouseMove event function of the 3rd Label:
Since users can change the back color of the Form on which these 3 Labels reside, I have set the BackStyle property of all the 3 Labels to Transparent (at design time in the Properties window) but what I find is when the mouse is moved over the 3rd Label, the font of the 1st & 2nd Label becomes bold. If I set the BackStyle of the 3rd Label to Opaque, then this problem doesn't arise. The font of the 1st & 2nd Label becomes bold only when the BackStyle of the 3rd Label is set to Transparent & the mouse is moved over the 3rd Label.Code:Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Label3.FontUnderline = True
Label3.ForeColor = vbBlue
Label3.MouseIcon = LoadResPicture("Hand", vbResCursor)
Label3.MousePointer = vbCustom
End Sub
How do I overcome this?
