title: How do I provide extra parameters with Ninject?
body: <p>I need to auto-resolve dependencies of my windows form. The only problem is my forms constructor expects an integer value as well. Please have a look at the implementation in the code section.</p>
  
  <pre><code>   //Ninject bindings
     public class Bindings : NinjectModule
      {
          public override void Load()
          {
              Bind&lt;ILogger&gt;().To&lt;LogToDB&gt;();
              Bind&lt;ICopy&gt;().To&lt;CopyToFolder&gt;();            
          }
      }
  
    //WinForm - Form1
     public partial class Form1 : Form
      {
          public readonly ILogger _processRepository;
          public readonly Icopy _copy;
          public readonly int ValueToEdit;
          public Form1(int valueToEdit, ILogger logger, ICopy copy)
          {
              this._processRepository = logger;
              this._copy = copy;
              this.ValueToEdit = valueToEdit;
              InitializeComponent();
          }
      }
      //main
      /// &lt;summary&gt;
      /// The main entry point for the application.
      /// &lt;/summary&gt;
      [STAThread]
      static void Main()
      {
          IKernel kernel = new StandardKernel(new Bindings());            
          Application.Run(kernel.Get&lt;Form1&gt;());            
      }
  </code></pre>
  
  <p>I get an error:
  Ninject.ActivationException: 'Error activating int
  No matching bindings are available, and the type is not self-bindable.</p>
  
  <p>How can I auto resolve the form dependencies and also be able to pass the integer value? Actually, I have used the same form for add and edit purpose so while editing, this edit value should be set.</p>