minmay吧 关注:0贴子:16
  • 0回复贴,共1

窗体真正居中显示

只看楼主收藏回复

Private Sub Form_Load()
DoCmd.Echo False
Dim x, y As Integer
DoCmd.Maximize
x = Me.WindowWidth
y = Me.WindowHeight
DoCmd.Restore
DoCmd.Echo True
Move (x - Me.WindowWidth) / 2, (y - Me.WindowHeight) / 2
End Sub


IP属地:浙江1楼2015-09-02 09:48回复