求窗体装载居中的代码
如题。。。居于屏幕的正中。。和分别率有关吗?
[解决办法]
Private Sub Form_Load()
Me.Top = (Screen.Height - Height) / 2
Me.Left = (Screen.Width - Width) / 2
End Sub
[解决办法]
Private Sub Form_Load()
me.move (Screen.Width - me.Width) / 2, (Screen.Height -me. Height) / 2
End Sub