Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 VB6 中调用 Form_Load() 和 Form_Activate() 函数的顺序是什么?在表单的上下文中,“激活”是什么意思?
来自KB138819:
该Form_Load事件在表单首次加载到内存时触发。
Form_Load
和
[...]Activate每次窗体成为活动窗口时都会调用该事件,只要焦点已在应用程序中的窗体之间移动。
Activate
你可以自己试试!
Option Explicit Private Sub Form_Activate() MsgBox "Form_Activate" End Sub Private Sub Form_Load() MsgBox "Fom_Load" End Sub
Form_Load msgbox 总是先出来!