Re: VB6 app hosting WebBrowser containing custom controls

From: Peter (Peter_at_discussions.microsoft.com)
Date: 09/21/04


Date: Tue, 21 Sep 2004 10:21:03 -0700

Thanks!

Peter

"Igor Tandetnik" wrote:

> "Peter" <Peter@discussions.microsoft.com> wrote in message
> news:C958E219-EDB6-42C1-AFFA-5E4C5C481D39@microsoft.com
> > I have tried to host a WebBrowser presenting HTML mixed with an
> > ActiveX control without any problems. But when I try to access the
> > ActiveX from the application hosting the WebBrowser I get the
> > following security problem: "An ActiveX control on this page might be
> > unsafe...". The ActiveX is already installed on the client machine
> > and are not downloaded.
>
> The control does not mark itself safe for scripting - see IObjectSafety.
>
> > How could I get rid of the security warning?
>
> Implement your own custom security manager - see
> IInternetSecurityManager. You are interested in
> URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY policy. Or, if you have access
> to the source code of ActiveX controls in question, mark them safe for
> scripting (by implementing IObjectSafety appropriately) - after making
> sure they are indeed safe, of course.
> --
> With best wishes,
> Igor Tandetnik
>
> "On two occasions, I have been asked [by members of Parliament], 'Pray,
> Mr. Babbage, if you put into the machine wrong figures, will the right
> answers come out?' I am not able to rightly apprehend the kind of
> confusion of ideas that could provoke such a question." -- Charles
> Babbage
>
>
>



Relevant Pages

  • Re: VB6 app hosting WebBrowser containing custom controls
    ... > ActiveX control without any problems. ... > ActiveX from the application hosting the WebBrowser I get the ... The control does not mark itself safe for scripting - see IObjectSafety. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: How to get authorization HTTP header from within an ActiveX co
    ... but it wouldn't a problem to use WinInet. ... "Igor Tandetnik" wrote: ... >> We developed an ActiveX control hosted inside an HTML page that sends ... > Mr. Babbage, if you put into the machine wrong figures, will the right ...
    (microsoft.public.win32.programmer.ole)
  • Re: Managed WebBrowser Control
    ... > WebBrowser and WebBrowser.WebBrowserSite classes. ... > extensibility interfaces implemented by the WebBrowser.WebBrowserSite ... > any other WebBrowser ActiveX control interface in order to customize ... > I can inherit a class from WebBrowserClass and override CreateAxSite ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Managed WebBrowser Control
    ... > WebBrowser and WebBrowser.WebBrowserSite classes. ... > extensibility interfaces implemented by the WebBrowser.WebBrowserSite ... > any other WebBrowser ActiveX control interface in order to customize ... > I can inherit a class from WebBrowserClass and override CreateAxSite ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: VB Form with activex control not opening
    ... on as admin and using the admin account. ... DevDiagnostics With Safe For Scripting, ... > About our activex control: The activex control has winsock control inside. ... > used in application1 and through the activex control, ...
    (microsoft.public.vb.controls.internet)