Web Browser Control on a Form

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
 
S

Stephen Lebans

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.
 
S

Stephen Lebans

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.
 
S

Stephen Lebans

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top