VB控件随鼠标移动而移动
就是要进入Form1后,Command1可随鼠标移动而移动玩过大鱼吃小鱼吗??就是那种效果!!!...
就是要进入Form1后,Command1可随鼠标移动而移动
玩过大鱼吃小鱼吗??
就是那种效果!!! 展开
玩过大鱼吃小鱼吗??
就是那种效果!!! 展开
4个回答
展开全部
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.Enabled = 0
Command1.Left = X - Command1.Width / 2
Command1.Top = Y - Command1.Height / 2
End Sub
Command1.Enabled = 0
Command1.Left = X - Command1.Width / 2
Command1.Top = Y - Command1.Height / 2
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
With Command1
.Left = X
.Top = Y
End With
End Sub
With Command1
.Left = X
.Top = Y
End With
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.Left = X
Command1.Top = Y
End Sub
Command1.Left = X
Command1.Top = Y
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
on Mouse movie? 好像是这个~!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询