大伙教教我吧
怎样才能做到在鼠标移到控件上时,上面的字会显亮或是变色?谢谢先了。
也可发到我的邮箱里daimh0597@sohu.com
MouseHover鼠标进入时发生的事件
MouseLeave鼠标离开时发生的事件
对VB.net感兴趣的请加入15636854讨论群
[此贴子已经被作者于2006-10-10 19:52:53编辑过]
Private Sub Label1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Label1.MouseMove
Label1.ForeColor = System.Drawing.Color.Red
End Sub
Private Sub Label1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Label1.MouseLeave
Label1.ForeColor = System.Drawing.Color.DimGray
End Sub