By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,139 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Border style on activeX-component

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"ReidarT" <re****@eivon.no> schrieb:
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
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.