title: Disabling WebBrowser ActiveX Warning
body: <p>I am currently running a WebBrowser in WPF, that WebBrowser is going to play a .SWF file. Every time the program debugs it asks for an Active X Agreement before running the file.
  I am not using HTML but set the Source in the WebBrowser itself: (EDIT : I no longer set the source in the WebBrowser)</p>
  
  <pre><code>&lt;WebBrowser Height="600" HorizontalAlignment="Left" Margin="12,0,0,0" Name="wbMain" VerticalAlignment="Top" Width="800"/&gt;
  </code></pre>
  
  <p>I have searched a few hours for a suitable solution but did not manage to find the way to disable that warning. Am I missing anything ? Must I use HTML to disable the warning? and how to do so?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:
  Okay, I've managed to fit my needs using HTML, I've placed an HTML called 1.Html in the .exe directory:
  The first line makes the warning dissapear.</p>
  
  <pre><code>    &lt;!-- saved from url=(0014)about:internet --&gt;
  &lt;html&gt;
  &lt;object width="800" height="600"&gt;
  &lt;param name="SRC" value="Ninja dance.swf"&gt;
  &lt;embed src="Ninja dance.swf" width="800" height="600"&gt;
  &lt;/embed&gt;
  &lt;/object&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And then at the program :</p>
  
  <pre><code>webBrowserName.Navigate(new Uri("pack://siteoforigin:,,,/1.html"));
  </code></pre>
  
  <p>:)</p>