It is specifically the button (or the picture button) that causes the prompt. If you have just a button, no rules, then clicking it is sufficient to cause the message to appear when you close the form, so it may be the button_clicked event. On the same form, you can switch views using the Views dropdown in the toolbar and there is no ...