Help! Web browser control just give me a blank space?

S

smilecry

I am using winXP pro, Access 2000, IE 6.0. After I added the web
browser control in form design and try to view the form in form view,
the place where WB control suppose to be is a white space? Any
suggestions? Thanks!
 
S

smilecry

I am totally new to this control.
My understanding is at least it should display an IE window for me
right?
How can I assign a URL? In its properties or using build event?
Thanks!
 
S

smilecry

OK, I tried again add codes to the on enter event,
WebBrowser1.Navigate "http://www.google.com".
It seems worked. But strange thing is no matter
how big I set it in design view, it will automatically
shrink in form view?
Thanks.
 
R

Rick Brandt

I am using winXP pro, Access 2000, IE 6.0. After I added the web
browser control in form design and try to view the form in form view,
the place where WB control suppose to be is a white space? Any
suggestions? Thanks!

Did you assign a URL to the control? It doesn't do anything until you do.
 
R

Rick Brandt

OK, I tried again add codes to the on enter event,
WebBrowser1.Navigate "http://www.google.com".
It seems worked. But strange thing is no matter
how big I set it in design view, it will automatically
shrink in form view?
Thanks.

There's a bug (been there forever). To size it you have to add it, set the size
you want, cut it to the clipboard, and then repaste it. At least the procedure
is very similar to that. If you Google on the topic you should find the
work-around. I actually use a wrapper control I found on the web...

http://www.eztools-software.com/tools/wow/default.asp

....that solves a few problems and adds some functionality. Not free, but very
inexpensive. One of the things it lets me do is dynamically resize the control.
That allows me to use the Resize event of the form to make the control change
size whenever the form is resized.
 
R

Rick Brandt

I am totally new to this control.
My understanding is at least it should display an IE window for me
right?

No. It only displays the web page you point it at. Until that happens it is
blank.
 
A

Arvin Meyer [MVP]

OK, I tried again add codes to the on enter event,
WebBrowser1.Navigate "http://www.google.com".
It seems worked. But strange thing is no matter
how big I set it in design view, it will automatically
shrink in form view?
Thanks.

It's a bug in the control. After placing the control on the form, save and
close the form. Then reopen and resize the control, save and close it again.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 

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