VB控件在窗体上水平居中对齐

2025-01-24 22:36:00
推荐回答(1个)
回答1:

Private Sub Form_Resize()
Label2.Move Me.ScaleWidth / 2 - Label2.Width / 2, Me.ScaleHeight / 2 - Label2.Height / 2
End Sub