title: Creating a Custom Event
body: <p>Can a custom event be created for any object method?<br>
  To do this do I just use the following syntax?:</p>
  
  <pre><code>myObject.myMethod +=new EventHandler(myNameEvent);
  </code></pre>
  
  <p>The following code has prompted this question:</p>
  
  <pre><code>   private void btRunProcessAndRefresh_Click(object sender,EventArgs e)
      {
          myProcess =new Process();
          myProcess.StartInfo.FileName = @"c:\ConsoleApplication4.exe";
          myProcess.Exited += new EventHandler(MyProcessExited);
          myProcess.EnableRaisingEvents =true;
          myProcess.SynchronizingObject =this;
          btRunProcessAndRefresh.Enabled =false;
          myProcess.Start();
      }
  </code></pre>