title: C# web browser constructor
body: <p>I am trying to add a web browser to an existing C# application, but, having not used C# in about 6 years, I am quite unfamiliar with how it works.</p>
  
  <p>I am trying to add the browser to a <code>partial class</code> (again, something I am not familiar with) using the following code:</p>
  
  <pre><code>public partial class WebBrowser : WebBrowserBase{
      public WebBrowser(){
          ...
      }
      ...
  }
  </code></pre>
  
  <p>However, I am getting a compile error on the constructor that says:</p>
  
  <blockquote>
    <p>'WebBrowserBase' does not contain a constructor that takes 0 arguments</p>
  </blockquote>
  
  <p>I Google'd this, and came across the following question on SO: <a href="https://stackoverflow.com/questions/7230544/c-sharp-error-parent-does-not-contain-a-constructor-that-takes-0-arguments">C# Error: Parent does not contain a constructor that takes 0 arguments</a>. I tried doing what was suggested in the answer to this, and changed my code to:</p>
  
  <pre><code>public partial class WebBrowser : WebBrowserBase{
      public WebBrowser(int i) : base(i){
          ...
      }
      ...
  }
  </code></pre>
  
  <p>However, I then get a compile error that says:</p>
  
  <blockquote>
    <p>'WebBrowserBase' does not contain a constructor that takes 1 arguments</p>
  </blockquote>
  
  <p>So I'm guessing that this issue isn't to do with the number of arguments in the constructor... Can anyone explain what I'm doing wrong here?</p>