vb 窗体上有个label控件 当我鼠标放上去的时候lael消失显示下面隐藏的按钮 菜鸟求帮助啊
2个回答
展开全部
直接使用LABEL控件的,nousemove属性就好了
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
command1.Visible =True
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
command1.Visible =True
End Sub
追问
大哥 那我再问一下这个是实现了 鼠标放上按钮显示那么怎么让鼠标离开后再恢复label呢
追答
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.Visible =False
Label1.Visible = True
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询