<p>Is there a good way to add a .swf programatically to a panel on an asp.net page - ie: I know i could just insert the html tags:</p>

<p>ie: </p>

<pre><code>&lt;object type="application/x-shockwave-flash" data="yourflash.swf" width="" height=""&gt;
&lt;param name="movie" value="yourflash.swf"&gt;
&lt;/object&gt;
</code></pre>

<p>But is there an existing .net or free FLASH component already that you just set the properties on, or do i need to create a custom web control myself (not preferred) so i dont have to continously do this?</p>

<p>Thank you. </p>

Just a guess here, but it looks like you are inheriting either the Static Edge or Client Edge style from you theme.  I create most of my dialogs from the resource editor and set these properties there.
In your case, you can replace your CreateWindow with a
CreateWindowEx
to set these extended styles, which are probably being defaulted in CreateWindow.  Specifically check out
```
WS_EX_STATICEDGE, WS_EX_WINDOWEDGE and WS_EX_CLIENTEDGE
```
Edit: I'm assuming that this is not happening because you button is the default control in the dialog, which would also give a black edge.