After you have set the properties and arranged the controls on the form, switch to the code window for the form. There are only three events that we care deeply about (or even care minimally about) in this form. They are the following: • When the user Clicks on cmd Cancel • When the user Clicks on…