VB label 鼠标经过变色代码,移开回到原来的颜色,谢谢!!
1个回答
展开全部
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Label1.Tag <> "" Then
Label1.ForeColor = Label1.Tag
Label1.Tag = ""
End If
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Label1.Tag = "" Then
Label1.Tag = Label1.ForeColor
Label1.ForeColor = vbRed
End If
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询