Re: Preventing the display of specific content while downloading...



Bassam <bj_private@xxxxxxxxx> wrote:
I'm new to this group and I have a question. I hope someone can answer
it if possible.

I have a program in which I'm hosting a webbrowser control and I need
to stop the browser from displaying flash. Is this possible. I'm aware
of the fact that you can prevent all ActiveX's from being downloaded
and/or executed but this will stop all activeX's not only the flash.

Create a COM object implementing IClassFactory that always returns an
error from CreateInstance. Use
CoRegisterClassObject(CLSCTX_INPROC_SERVER) to register this class
factory in your process for the CLSID normally referring to Flash. Now
every time WebBrowser tries to create an instance of Flash control, it
will call your factory and get a failure.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Interop Adobe Flash ( ShockWave) control with WinForms WebBrowser control 2005
    ... WebBrowser control no longer works with the Adobe Flash Shockwave control. ... Visual Studio 2005 throws an interop exception when dragging the COM control ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Browser priority
    ... Most of flash is ad. ... I'm hosting webbrowser control in my dialog but when it is displaying flash, ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: How do i embed a Flash Player in my VB app?
    ... To use flash player in your VB app, ... Second is to use webbrowser control which is good alternative, ... navigate. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Preventing the display of specific content while downloading...
    ... I have a program in which I'm hosting a webbrowser control and I need ... to stop the browser from displaying flash. ... and/or executed but this will stop all activeX's not only the flash. ... factory in your process for the CLSID normally referring to Flash. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: How do i embed a Flash Player in my VB app?
    ... Anil Gupte ... To use flash player in your VB app, ... First one is using Flash ActiveX control in your project which has a ... Second is to use webbrowser control which is good alternative, ...
    (microsoft.public.dotnet.languages.vb)