MouseHover effect on dynamically LinkLabels

Donadoni

Newcomer
Joined
Sep 5, 2003
Messages
8
I have learned how to dynamically create linklabels at runtime, but how do I make a mouseover and mouseleave effect on them? This is the code so far:

For i = 0 to 4
LL as As New LinkLabel
"LOT OF CODE..."
AddHandler LL.Linkclicked, AddressOf LinkLabelClicked
AddHandler LL.MouseHover, AddresOf LinkLabelMouseOver
AddHandler LL.MouseLeave, AddresOf LinkLabelMouseLeave
Next

How should the code look like when "LinkLabelMouseOver" and "LinkLabelMouseLeave" are called.
 
Private Sub LinkLabelMouseOver(ByVal sender As Object, ByVal e As System.EventArgs)
'write whatever you want to do here
End Sub

Private Sub LinkLabelMouseLeave(ByVal sender As Object, ByVal e As System.EventArgs)
'write whatever you want to do here
End Sub

Hope this helps,
 
Back
Top