Add function on Sage 200 main program, not forms

SOLVED

Hi All,

I know that we are able to edit the Sage 200 form using Form designer and developer tools. But are we able to edit the Sage 200 main program? for example, when user click close, add popup warning "Are you sure to close Sage 200?".

Thank you.