Question Transparent Flash in VB Web Browser


New member
Aug 16, 2009
Programming Experience
I have a normal VB 2008 form with a WebBrowser control inside it (docked to fill the whole form). I have FormBorderStyle set to none and the TransparentKey is red. I then have this HTML code inside the WebBrowser that loads a Flash file, makes the background of the Flash object transparent, and makes the HTML background red (TransparentKey is set to red, so this will appear transparent):

<!-- Disable cache -->
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Expires" CONTENT="-1">
<body scroll="no" border="no" bgcolor="red">
<!-- Flash object -->
<OBJECT classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" width="200" height="400" id=FlashMovie loop="false">
<PARAM NAME="Movie" VALUE="Blank.swf">
<!-- Make background of flash transparent -->
<PARAM NAME="WMode" VALUE="Transparent">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="Loop" VALUE="false">

This works (flash loads, background of flash is transparent so red background of HTML body shows through, then red becomes transparent because of VB form's TransparentKey):

Now here is my problem: Even though the background is transparent, the area that it occupies (ie. the area between the dog's ear and head) is still part of my application (if I click there, the click would go to my application, even though it is not visible there because of TransparentKey)

If anyone could help me, I would greatly appreciate it.

Thanks in advance!
Top Bottom