只需一步,快速开始
1970-1-1 08:00| 发布者: 黄海| 查看: 2373| 评论: 0
使窗体居中显示代码ACCESS中的窗体虽然设置了自动居中,但是打开后总是有点不居中的感觉,加下如下代码可以做到真正居中显示Private Sub Form_Load()DoCmd.Echo FalseDim x, y As IntegerDoCmd.Maximizex = Me.WindowWidthy = Me.WindowHeightDoCmd.RestoreDoCmd.Echo TrueMove (x - Me.WindowWidth) / 2, (y - Me.WindowHeight) / 2End Sub
评论
|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )
GMT+8, 2025-4-3 13:42 , Processed in 0.064206 second(s), 16 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.