Close Issue Material after OK

I currently have Issue Material screen open. I would like to automatically close the form after OK is clicked and the material is issued. Can this be done or do I have to make the user click the X in the upper right hand corner? If it can be done, how do I start?

It will require code.
The way I’ve done it is to hide the current button and create your own. Then the code would be something like this:

EpiButton oldOK = (EpiButton)csm.GetNativeControlReference("BUTTONGUID");
oldOK.PerformClick();
IssueMaterialForm.Close();

Ok. Thank you. I will try that in my customization.