Web Browser Control on a Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I added a web browser control on a form and added the
following code:

Dim w1 As SHDocVw.WebBrowser
If TypeOf Me.ActiveXCtl73.Object Is SHDocVw.WebBrowser Then

Set w1 = Me.ActiveXCtl73.Object

w1.Navigate2 "https://www.thewebpage"

Set w1 = Nothing
End If

I have since decided that I want to control, with an "On
Click" event, when the page is displayed. I remarked the
code out, but the page is still displayed when I open the
form. In fact, the page is password protect, and when I
open the form even in design view I am prompted for the
password.

Does anyone why the page is still loading, and how to stop
it?

Thanks in advance!

Dwight
 
Open the Form containing the Web Browser ActiveX control in Design view.
Bring up its Property Pages. Clear out the Path and FullName props.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Make sure the Web Browser control is highlighted in Design view
Select Properties from the VIEW menu
Select the "Other" TAB

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Are you sure you are using the MS Web Browser ActiveX control? Which
version do you have?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top