Border style on activeX-component

  • Thread starter Thread starter ReidarT
  • Start date Start date
R

ReidarT

I have a windows project with an activeX web-browser.
This works fine, but I can't get rid of the borderline on the activeX
component.
regards
reidarT
 
ReidarT said:
I have a windows project with an activeX web-browser.
This works fine, but I can't get rid of the borderline on the activeX
component.

The border is a property of the page displayed in the control. You can
remove it by handling the 'DocumentComplete' event and setting the
document's border to "none".

\\\
Imports AxSHDocVw
..
..
..
Private Sub AxWebBrowser2_DocumentComplete( _
ByVal sender As Object, _
ByVal e As DWebBrowserEvents2_DocumentCompleteEvent _
) Handles AxWebBrowser2.DocumentComplete
Me.AxWebBrowser2.Document.body.style.border = "none"
End Sub
///
 

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

Back
Top