In the coding window there are to comboboxes at the top. The left one you select the control, in this case it will be formevents. In the right one it lists all the events for that control. Select either Closed or CLosing. Untitled is the left combobox, untitled1 is the right combobox.