title: User Control Buttons to Close a Dialog Box
body: <p>I have created a User Control in my application that has a textbox and then 2 buttons on it.  One button is to Add data to the DB from the textbox and the second Cancels the action.  This User Control is then added to multiple Dialogs (forms) but I want the buttons to trigger the same events, which the reason I placed the buttons on the User Control and not the Dialog. </p>
  
  <p>What I am trying to do is after they click the Add data button and it is successful, I want it to close the Dialog that the control is located on.  </p>
  
  <p>EDIT:</p>
  
  <p>I don't know how to go about coding this to close the Dialog when it is triggered from a User Control. I don't know where to start because I haven't used User Controls before. Typically I just have the controls on a Dialog which allows for the <code>DialogResult = DialogResult.OK;</code></p>
  
  <p>Thanks</p>