Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / July 2007

Tip: Looking for answers? Try searching our database.

WebBrowser control & ActiveX security popup message

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bart - 20 Jul 2007 14:28 GMT
Hi

In our application we load HTML content into a Forms.WebBrowser
control. The HTML page contains an ActiveX control. When the page
loads the browser pops up a message stating "An ActiveX control on
this page might be unsafe.." etc. This message should be suppressed! I
guess I somehow have to implement the InternetSecurityManager
interface and tell the WebBrowser control to use it, but I do not see
how to do this e.g. what's the purpose of the
WebBrowser.WebBrowserSite; there's nothing to override in this
class??. Am I right ? Any suggestions to solve this?

I can always resort to creating an old school ActiveX that loads the
browser and host that control in my app implementing a custom control
site with InternetSecurityManager but I'd rather fix it in the managed
world.

Thanks a lot!
Bart
Sheng Jiang[MVP] - 20 Jul 2007 19:34 GMT
WebBrowser.WebBrowserSite is a class that you can expend to customize the
behavior of the webbrowser control. The .Net 2.0 version of this class
supports some default extension, such as IDocHostUIHandler.

For the managed version of InternetSecurityManager, search "Microsoft
Internet Control and Vista" in newsgroups.
For how to extend WebBrowserSite, visit
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=824548&SiteId=1
Signature

Sheng Jiang
Microsoft MVP in VC++

> Hi
>
[quoted text clipped - 15 lines]
> Thanks a lot!
> Bart

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.