title: WPF - How do i insert my proxy credentials in WebBrowser Control
body: <p>I'm using a <code>webbrowser</code> <code>control</code> in WPF to show a virtual earth map, but because  I'm developing behind a <code>proxy</code> of my company, every time I try to see the map, I have to insert my credentials. </p>
  
  <p>I would like to insert them automatically in the c# code, how can I achieve that?</p>
  
  <p>I already try in the navigating event of the web browser using:</p>
  
  <pre><code>void webBrowser_Navigating(object sender, NavigatingCancelEventArgs e)
  {
      //NetworkCredential credential = new NetworkCredential("u007239", "****", "****");
      //e.WebRequest.Proxy.Credentials = credential;
  
  }
  </code></pre>
  
  <p>But this doesn't work because I'm getting that <code>e.webrequest</code> is a <code>null object</code>.</p>
  
  <p>all the help is welcome. </p>