2个回答
2010-11-12
展开全部
添加1个command,1个label。
Private Sub Command1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.Visible = False
End Sub
Private Sub Form_Load()
Label1.AutoSize = True
Label1.AutoSize = False
Label1.Alignment = 2
Label1.Left = Command1.Left
Label1.Top = Command1.Top + (Command1.Height - Label1.Height) / 2 - 10
Label1.Width = Command1.Width
Label1.Caption = Command1.Caption
Command1.Visible = False
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.Visible = False
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.Visible = True
End Sub
Private Sub Command1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.Visible = False
End Sub
Private Sub Form_Load()
Label1.AutoSize = True
Label1.AutoSize = False
Label1.Alignment = 2
Label1.Left = Command1.Left
Label1.Top = Command1.Top + (Command1.Height - Label1.Height) / 2 - 10
Label1.Width = Command1.Width
Label1.Caption = Command1.Caption
Command1.Visible = False
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.Visible = False
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.Visible = True
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询