title: How to restrict user from closing the Winform c#
body: <p>I know this is very simple question, but I am looking for neat and clean suggestion. My application is an MDI application. Created a base form which is being used in the whole applicaiton. There are couple of forms which we dont want user to close so to avoid human mistakes we have planned to not allow the user to close those forms.</p>
  
  <p>I have tried to setting <code>e.cancel = true</code> in form closing event, but it seems its not working can somebody give me some suggestions please?</p>
  
  <p>Edit:</p>
  
  <pre><code>Private void FrmTask_FormClosing(object sender, FormClosingEventArgs e)
          {         
                  e.Cancel = true;
          }
  </code></pre>
  
  <p>The problem is that when I am using this code, none of the form in my MDI application are closing, even the main MDI Parent form.</p>