使表单显示在屏幕中间 [英] Make forms show up in middle of screen

查看:227
本文介绍了使表单显示在屏幕中间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么在具有宽屏幕的笔记本电脑上,我的应用程序屏幕显示在屏幕的右侧,用户必须将屏幕拖到中间。有没有办法让屏幕始终显示在屏幕中间?

感谢您的帮助。

解决方案

我'在2台显示器上工作时,我也注意到了这一点。即使我的表单都设置为居中,当我编译和分发它时,用户的表格偏离中心,也许相对于我在开发时的位置。我认为这有助于确保我在常规尺寸窗口中打开Acess,然后打开表单并确保它们在我制作accdr(或mde)之前居中。虽然看起来确实不一致,但我没有收集太多证据。


@CD Tom


无论屏幕分辨率或其他因素如何,您始终可以确保窗体始终显示在屏幕的中间,但代码很复杂,并且需要明智地使用API​​。如果你有兴趣,我会创建一个演示数据库,为你说明这个功能。


那会很棒,如果你能给我代码我很可能会想到它除非它更容易做演示数据库。感谢

Why is it that on laptops with wide screens that my application screens show up on the right side of the screen and the user has to drag the screen into the middle. Is there a way to make the screen always show up in the middle of the screen?
Thanks for any help.

解决方案

I''ve noticed this too when working on my frontend on 2 monitors. Even though my forms are all set to centered, when I compile and distribute it, users have forms open up way off center, maybe relative to where I have them while developing. I think it has helped to make sure I open Acess in a regular size window, then open the forms and make sure they are centered there before I make the accdr (or mde). It seems really inconsistent though, and I haven''t collected too much evidence.


@CD Tom
You can always make sure that Forms always show up in the ''Middle'' of the Screen regardless of Screen Resolution or other factors, but the code is complex and involves judicious use of the API. If you are interested, I''ll create a Demo DB that will illustrate this functionality for you.


That would be great, If you can just give me the code I can probable figure it out, unless it''s easier doing the demo DB. Thanks


这篇关于使表单显示在屏幕中间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆