The App i'm working with has no Form, it's just a single instance Run Application, it runs and closes, so i can't catch asyncronic events thrown by Webbrowser, i've used Document_Complete() event in the past but is there any alternative when there is no Form?
I know a loop like this would work, not allowing execution to continue until the state changes, but i just wanted to know if there exist something better since it's known as a bad practice in .Net:
Code:Do While (wb.ReadyState <> WebBrowserReadyState.Complete) Application.DoEvents() Loop




Reply With Quote