G
Guest
Hi,
Straightforward code posted below. Problem is that the MouseLeave event
sometimes does not fire. Strangly, it seems to be more often when moving the
mouse slowly away from the label (control "lblMin" is a label). Any ideas?
Thanks
Paul
Private Sub lblMin_MouseEnter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles lblMin.MouseEnter
Me.SuspendLayout()
With lblMin
.BackColor = Color.Salmon
.BorderStyle = BorderStyle.Fixed3D
.ImageAlign = ContentAlignment.MiddleCenter
End With
Me.ResumeLayout()
End Sub
Private Sub lblMin_MouseLeave(ByVal sender As Object, ByVal e As
System.EventArgs) Handles lblMin.MouseLeave
Me.SuspendLayout()
With lblMin
.BackColor = Color.IndianRed
.BorderStyle = BorderStyle.None
.Image = Nothing
End With
Me.ResumeLayout()
End Sub
Straightforward code posted below. Problem is that the MouseLeave event
sometimes does not fire. Strangly, it seems to be more often when moving the
mouse slowly away from the label (control "lblMin" is a label). Any ideas?
Thanks
Paul
Private Sub lblMin_MouseEnter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles lblMin.MouseEnter
Me.SuspendLayout()
With lblMin
.BackColor = Color.Salmon
.BorderStyle = BorderStyle.Fixed3D
.ImageAlign = ContentAlignment.MiddleCenter
End With
Me.ResumeLayout()
End Sub
Private Sub lblMin_MouseLeave(ByVal sender As Object, ByVal e As
System.EventArgs) Handles lblMin.MouseLeave
Me.SuspendLayout()
With lblMin
.BackColor = Color.IndianRed
.BorderStyle = BorderStyle.None
.Image = Nothing
End With
Me.ResumeLayout()
End Sub