Reputation: 324
I have a problem: one of the forms in my project takes long time to load. Situation:
With using debugger I go through code. When I reach row with Load frmTest
(there is a specific form) it takes about 1.5 - 2 seconds to continue in Form_Load handler.
I tried to search for some documentation, but failed... well at least finding any information about what Load Sub does before Form Load event triggers.
So, how does the VB.Global.Load work?
Upvotes: 1
Views: 540
Reputation: 324
Thanks @Alex K. for the answer:
The biggest job it does it to initialize all the controls/activex components sited on the form (or anything in the global scope declared As New) so if you have any third party ones then that's something to investigate.
Upvotes: 0
Reputation: 1589
There're so many things that can go wrong.
That's how I would analyze this case.
Upvotes: 1
Reputation: 571
Assuming this is VB6 (never heard of 'VB.Global.Load' in that context), see Life Cycle of Visual Basic Forms
Upvotes: 0