Private Sub Form_Resize() Command1.Top = (Me.Height - Command1.Height) \ 2 Command1.Left = (Me.Width - Command1.Width) \ 2End Sub把Command1换成你想要居中的控件名就可以了。
设置控件的style例如Label1.Style("align") = "center"