Closing a customization programmatically

I have a customization that performs my desired behavior. I would like to close the customization screen automatically after a button is clicked and the code is executed under the button handler but am not sure how to do that. I would like to get away from having to click the northeast corner X to kill the form to save the user just a smidgeon of aggravation. I’ve tried this.Close(), this.Exit(), etc. but nothing has been successful. Does anyone know if I can accomplish this?

Using .Close() on the main form worked for me. For example customizing “Tip of the Day” I used TipForm.Close() and it worked perfectly. If that’s what it seems like you’re doing then an example might help.

Yeah, that works. I am trying to do it from a Native Control though and don’t have access to it or can put any code under it.