title: Created Button Click Event c#
body: <p>I have made a button using </p>
  
  <pre><code>Button buttonOk = new Button();
  </code></pre>
  
  <p>along with other code, how can I detect if the created button has been clicked?
  And make it that if clicked the Form will close?</p>