显示表单后触发的事件 [英] What event fires after form is displayed

查看:69
本文介绍了显示表单后触发的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了:

打开→加载→调整大小→激活→当前


但这些似乎都发生在表单之前实际显示在屏幕上。我甚至尝试过GotFocus。


我有一个msgbox应该在显示表单后显示,但它实际显示在表单显示之前并阻止它显示直到用户点击确定。

解决方案

- 事件订单
数据库对象的事件顺序(v2010)


< blockquote>谢谢,zmbd,你会在我的帖子中看到我实际上是从那个页面剪切并粘贴的。在显示表单之前出现Current和GotFocus。


或者你想告诉我之后没有更多的事件,我只是运气不好?


您可以使用表单'的Timer事件在短暂的间隔后显示您的消息框。尝试将TimerInterval属性设置为500到1000之间(即0.5s和1s之间),然后将消息框等的代码放在On Timer事件子中(如下例所示)。

展开 | 选择 < span class =codeDivider> | Wrap | 行号


I''ve been through:
Open → Load → Resize → Activate → Current

but each of these seems to occur before the form is actually displayed on the screen. I even tried GotFocus.

I have a msgbox that is supposed to display after the form is displayed, but it actually shows up before the form displays and stops it from being displayed until the user clicks OK.

解决方案

-Order of events
Order of events for database objects (v2010)


Thanks, zmbd, you''ll see that in my post I actually cut-and-paste from that very page. Current and GotFocus occur before the form is displayed.

Or are you trying to tell me that there are no more events after that, and I''m just out of luck?


You could use the form''s Timer event to display your message box after a short interval. Try setting the TimerInterval property to, say, between 500 and 1000 (that is, between 0.5s and 1s), then place the code for your message box etc in the On Timer event sub (as in the example below).

Expand|Select|Wrap|Line Numbers


这篇关于显示表单后触发的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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