关于VB中命令按钮放在右下角的问题

2024-12-23 06:27:49
推荐回答(2个)
回答1:

Private Sub Form_Resize()
Command1.Left = Me.ScaleWidth - Command1.Width
Command1.Top = Me.ScaleHeight - Command1.Height
End Sub

回答2:

朋友,你好,你就自己多试一下吧。。减去一下值就行啦。。。。。
你不用担心其它的事。只要能实现效果就OK

'需要控件:command1
Private Sub Form_Resize()
Command1.Left = Me.Width - Command1.Width - 100
Command1.Top = Me.Height - Command1.Height - 500

End Sub