VB6.0中鼠标移动至一个按钮上后触发一个事件怎么实现
展开全部
只能用窗体的鼠标移动事件了!
画出一个按钮,command1
Private
Sub
Form_MouseMove(Button
As
Integer,
Shift
As
Integer,
X
As
Single,
Y
As
Single)
If
X
>
Command1.Left
And
X
<
Command1.Left
+
Command1.Width
And
Y
>
Command1.Top
And
Y
<
Command1.Top
+
Command1.Height
Then
Command1.Visible
=
True
Else:
Command1.Visible
=
False
End
If
End
Sub
画出一个按钮,command1
Private
Sub
Form_MouseMove(Button
As
Integer,
Shift
As
Integer,
X
As
Single,
Y
As
Single)
If
X
>
Command1.Left
And
X
<
Command1.Left
+
Command1.Width
And
Y
>
Command1.Top
And
Y
<
Command1.Top
+
Command1.Height
Then
Command1.Visible
=
True
Else:
Command1.Visible
=
False
End
If
End
Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询