如何实现vb中实现...鼠标一移动到按钮,按钮名称就会变。
比如说,窗体上有个问题,你喜欢我不?有两个按钮,一个是yes,一个是no,当鼠标移动到no时,no就变成yes,可以吗?...
比如说,窗体上有个问题,你喜欢我不?有两个按钮,一个是yes,一个是no,当鼠标移动到no时,no就变成yes,可以吗?
展开
展开全部
Private Sub Command2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command2.Caption = "yes"
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command2.Caption = "no"
End Sub
Command2.Caption = "yes"
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command2.Caption = "no"
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询