表格在最大化前闪现 [英] Forms flash before maximize
问题描述
Access 2010
Access 2010
表格的典型问题在最大化之前闪烁;也就是说,它们在最大化之前闪烁到设计尺寸。 close事件(来自命令按钮)也会发生同样的事情。我在每个表单OnLoad和
OnActivate属性中都有DoCmd.Maximize,但这看起来有点矫枉过正。 我确信我曾经看过一种解决这个问题的方法。
Having the typical problem of forms flashing before being maximized; that is, they flash open to the designed size before being maximized. Same thing happens with the close event (from a command button). I have DoCmd.Maximize in each forms OnLoad and OnActivate properties, but that seems like overkill. I'm sure I once saw a cure-all of sorts to eliminate this issue.
我查了Echo是/否但不知道在哪里放置命令或者它真正实现的目标(因为MS帮助总是非常有帮助)。
I've looked up Echo true/false but don't know where to place the command or what it truly accomplishes (because MS Help is always oh-so-helpful).
赞赏的想法/解决方案。 谢谢,
Thoughts/solutions appreciated. Thanks,
Ross
Ross
推荐答案
将它放在多个事件上会让情况变得更糟而不是更好。
Well putting it on more than one Event will make it worse not better.
我会尝试在开放而不是在负载上,因为射击的顺序可能有所帮助。 On On Load on On Load。
I would try On Open rather than On Load as the order of firing may help. On Open fires before On Load.
编辑1
在"DoCmd.Maximize"之前运行了多少个命令?任何睡眠或事件?
How many commands are running prior to "DoCmd.Maximize"? Any Sleep or Do Events?
DoCmd.Maximize应该是第一个运行的命令,所以如果没有列出,首先重新排列代码。
DoCmd.Maximize should be the first command to run, so if it is not listed first rearrange your code.
>
这篇关于表格在最大化前闪现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!