C# - 加载表单后是否有任何事件触发? [英] C# - are there any events fired right after loading a form?

查看:110
本文介绍了C# - 加载表单后是否有任何事件触发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想给用户使用教程的选项,他第一次使用该程序。我尝试在 Form.Load 事件中添加它,但在弹出消息框之后,表单显示。

I want to give the user the option to use a tutorial, the first time he uses the program. I tried adding it in the Form.Load event, but the forms shows up after the Messageboxes have popped up.

这就是为什么我想知道,加载表单后是否有任何事件触发?

That's why I would like to know, are there any events fired right after loading a form?

如果没有,是否有方法在加载后执行操作? / p>

If not, is there a way to perform actions right after loading?

推荐答案

你应该尝试显示的事件,这是在第一次显示表单后触发的。
在表单显示之前加载。

You should try the shown event, which fires after the form is shown for the first time. Load happens before the form is shown.

这篇关于C# - 加载表单后是否有任何事件触发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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