Document structure"Form0" - Form- - "panel2" - Panel- - - "Frm5UC" - Custom item- - - - "webBrowser1" - Browser
Application logic:- go to the page in "webBrowser1";- enter login;- enter the password;- click the "Login" button.
If I execute the logic through the code (this is the "Method_0 ()" method), the form does not have time to load in the "Authorization ()" method. I get "webBrowser1.Document = null", error "Object link does not indicate an object instance."
If I do everything through the interface, then everything works.
How to make the logic run programmatically?