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.