The following code listings are provided for the two form-based classes in the MyNotepad application: