hi

i would like to know the functions of webbrowser1.busy,STATE_COMPLETE and all other properties of web browser.

pls also let me know how to make the process sleep until web browser gets loaded.

thank u

Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
   Me.Hide ' or Me.Enabled = False
End Sub

Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
   Me.Show   'Me.Enabled = True
End Sub

This code shows ur form is disabled or hidden until the page is loaded.
Also try the commented statements

hi

instead of a code for my project i would like to know about the different properties of web browser.

thank u

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.