title: How to set events in Microsoft.Office.Interop.Word namespace?
body: <p>I tried</p>
  
  <pre><code>var wordApp = new Microsoft.Office.Interop.Word.Application();
  var doc = wordApp.Documents.Open(FileName);
  wordApp.Visible = true;
  
     ((Microsoft.Office.Interop.Word.ApplicationEvents4_Event)wordApp.Quit) += new ApplicationEvents4_QuitEventHandler(delegate
                      {
                          MessageBox.Show("word closed!");
                      });
  </code></pre>
  
  <p>But I get:</p>
  
  <pre><code>Cannot convert method group 'Quit' to non-delegate type 'Microsoft.Office.Interop.Word.ApplicationEvents4_Event'. Did you intend to invoke the method?
  
  
  Microsoft.Office.Interop.Word._Application.Quit(ref object, ref object, ref object)' 
  and non-method 'Microsoft.Office.Interop.Word.ApplicationEvents4_Event.Quit'. Using method group.
  </code></pre>
  
  <p>I did the cast because of warning, but was not solved. And I don't know how to solve this error. Thanks in advance.</p>