Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebBrowser1.move error 1

Status
Not open for further replies.

lance59

IS-IT--Management
Mar 6, 2007
50
US
I have a WebBrowser on my form and I want it too auto resize to fit the form. I have tried:


Private Sub WebBrowser1_Move(ByVal sender As Object, ByVal e As System.EventArgs) Handles WebBrowser1.Move
Dim ScaleWidth As Integer
Dim ScaleHeight As Integer
WebBrowser1.Move(0, 0, ScaleWidth, ScaleHeight)
End Sub

But I get an error (underlined) on WebBrowser1.Move

I added refernce to Microsoft HTML Object Library and Microsoft Internet Controls

Any help?

TIA
 
Look at the anchor/dock properties of the web browser

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top