vb 中单击command1,label1向窗体右下角移动的代码 5
展开全部
以下是frame的,供参考
Public Function frameMove(frameTemp As Frame, Button As Integer, x As Single, y As Single)
With frameTemp
If Button = 1 Then '左键
.Left = x + .Left
.top = y + .top
End If
End With
Public Function frameMove(frameTemp As Frame, Button As Integer, x As Single, y As Single)
With frameTemp
If Button = 1 Then '左键
.Left = x + .Left
.top = y + .top
End If
End With
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command1_Click()
Label1.Move Me.ScaleWidth - Label1.Width, Me.ScaleHeight - Label1.Height
End Sub
Label1.Move Me.ScaleWidth - Label1.Width, Me.ScaleHeight - Label1.Height
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询