1. Complete the following programming exercise (SIMPLE TEXT EDITOR WITH ONE LARGE RICH TEXT BOX). You will use the OpenFileDialog, StreamReader and StreamWriter objects; the Close, Peek, ReadLine, ShowDialog and WriteLine methods.
    Create a simple text editor that has one large rich text box (with its Multiline property set to true). Set the text control to fill the form and set its Anchor property to all four edges so that the control fills the form even when it is resized.
    Allow the user to save the contents of the text box in a data file and load a data file into the text box using the Open File dialog box.
    Use a StreamWriter and StreamReader or File.WriteAllText and File. ReadAllText.
    Make sure you close your project when complete. Make a copy of the project folder, compress it to a single file, and submit it.

  2. Complete the following programming exercise (WRITE AN MDI PROJECT THAT IS A SIMPLE TEXT EDITOR). You will use the IsMdiContainer and MdiWindowListItem properties; the LayoutMdi method. Refer back to the previous required assignment from Lesson K08-5 (SIMPLE TEXT EDITOR WITH ONE LARGE RICH TEXT BOX) as a base for this assignment.
    Write an MDI application that is a simple text editor. Allow the user to open multiple documents, each in a separate child form. For the text editor, use one big TextBox control with its Multiline property set to true or a RichTextBox control. Set the control's Anchor property to all four edges so the control fills its form.
    The main form should have an Open menu item to open previously saved files; the child forms should have a Save menu item to save their text to a file. Use the file handling that you learned and display the name of the file in the form's title bar.
    Make sure you close your project when complete. Make a copy of the project folder, compress it to a single file, and submit it.

You forgot to give us your teacher's email address so that we can submit your homework after we've done it. :rolleyes:

This article has been dead for over six months. Start a new discussion instead.