ActiveX Control: WebBrowser resize help?

option

Registered User.
Local time
Yesterday, 22:44
Joined
Jul 3, 2008
Messages
143
Hey guys,

Is there any way to resize an ActiveX web browser control on a form with vba? I've got my form resizing using the module floating around the internet by Jamie Czernik, and that works great, but it doesn't resize my web browser. I also tried
Code:
    Me.WebBrowser0.Width = 17775
    Me.WebBrowser0.Height = 9375
on the forms On Load event, but still nothing. We're trying to keep the form the same no matter what the screen resolution. Any thoughts?:confused::confused:
 
Have you set the Top and Left to 0 (zero) also if the size exceeds the form dimensions it will error.

David
 
Yes I have done that, still no dice :D
 
I resize a web browser control in the Resize event...
Code:
Private Sub Form_Resize()
   With Me.WebBrowser0
      .Width = Me.InsideWidth
      .Height = Me.InsideHeight
   End With
End Sub
...and it works fine.
 
Doesn't seem to work for me....interesting. Thanks for the suggestion though, I'll keep working with it.

My form itself keep ballooning up, but my web control stays the same when I copied that code in.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom