Flash security popup is unclickable on a layered window

Posted by sjlewis on Stack Overflow See other posts from Stack Overflow or by sjlewis
Published on 2010-03-12T09:43:48Z Indexed on 2010/03/12 9:47 UTC
Read the original article Hit count: 369

I have a layered (TransparencyKey is set) winform w/ a WebBrowser control on it that navigates to a page that contains flash (swf).

Everything works okay except that when flash shows a security popup, none of the buttons on the popup respond to mouse click, so I can't click Allow/Deny. Right-click works but only shows the context menu that is normal to flash.

I tried overriding WndProc on the WebBrowser control, as suggested here, but it still does not respond to mouse click.

If I comment out the TransparencyKey setting, even w/o the WndProc override, the buttons respond.

I thought this'd be a container issue so I decided to host the swf file on the form, using the example here, but this, too, had the same problem w/ layered window.

So, is there another way that can get around this problem? What is it w/ layered window that renders the buttons on the flash popup unclickable? What is it w/ flash...?

© Stack Overflow or respective owner

Related posts about flash

Related posts about swf