Wyo VB Ch5Proj3

Write a program that uses the following menu:

File
  Open
  Save As
  Print
  Exit

to allow the user to open an existing text file, edit it, and save the file with a specified filename. The Open command will prompt the user to input a complete text file filename such as data.txt (including the .txt file extension). The text in that file will appear in a textbox that is stretched to the size of the form window. Be sure to set the Multiline property of the textbox to True. The user will then be able to edit the text. When the user clicks the Save As menu command, he will again be prompted with another input box. He can type the same filename or another filename to save the revised version of the text file. All text files must be stored in a folder named "files" which is a subfolder of your Ch5Proj1 project folder.

Use your program to write a one-page informational paper (400-600 words) on a computer topic from this list. If you would like to use a different topic, it must be pre-approved by Mr. Minich with a written request. The paper must be 1.5 spaced with default page margins typed in Times New Roman with font size 12. You must cite your sources in MLA format on a second page.

Methods and their pseudocode

mnuFileOpen
- prompts the user for a text file filename with an InputBox
- reads each line of the text file with a StreamWriter and places the text in a textbox

mnuFileSaveAs
- uses an InputBox to prompt the user to type the name of the file to be saved
- write the text in the textbox to the specfied text file

mnuFilePrint
- send the text in the textbox to the printer

Preconditions:

  • All text files will be stored in a folder named "files" which is found in the Ch5Proj1 project folder

Your program must follow standard Windows conventions as well as our school's Visual Basic Coding Standards. Name your project Ch5Proj3.

Staple & submit your printouts in the following order:

  1. VB c-de
  2. one page paper