|
-
Feb 18th, 2000, 05:03 AM
#1
I've embedded the webbrowser control in an ActiveX control and I wanted to know if there was any way to get rid of the Scrollbar.
I've read through the microsoft documentation and it seems that the "Scroll=no" in the body tag is ignored.
I've also tried using an HTA format instead but there is no way to tell VB that the script is for an HTA file and not an HTML file.
-
Feb 18th, 2000, 07:02 AM
#2
What you can do is to place WebBrowser control inside of the Picturebox to achieve this:
Code:
Private Sub Form_Load()
With Picture1
.Left = 0
.Top = 0
.Height = ScaleHeight
.Width = ScaleWidth + 100
WebBrowser1.Navigate "www.vb-world.net"
WebBrowser1.Move ScaleX(-12, vbPixels, vbTwips), _
ScaleY(-19, vbPixels, vbTwips), _
ScaleX(Width + 20, vbPixels, vbTwips), _
ScaleY(Height + 20, vbPixels, vbTwips)
End With
End Sub
------------------
Serge
Senior Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
-
Feb 18th, 2000, 09:26 AM
#3
I'm sorry, I don't see how this code puts the webbrowser inside of the picture box.
-
Feb 19th, 2000, 09:31 AM
#4
I meant, that you have to put Picturebox on the form and then draw WebBrowser contrl inside of the Picturebox......then use the code above.
------------------
Serge
Senior Programmer Analyst
[email protected]
[email protected]
ICQ#: 51055819
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|