This looks like your "parent" form and FormVending's code are in one module because of WithEvents.

Look closely at your FrmVending_FormClosed event. You will notice, that it still Handles...