Workshop

The Workshop is designed to help you anticipate possible questions, review what you've learned, and get you thinking about how to put your knowledge into practice. The answers to the quiz are in Appendix A, “Answers to Quizzes/Exercises.”

Quiz

1:True or False: The Open File dialog box automatically opens a file.
2:What symbol is used to separate a filter description from its extension?
3:What objects are used to manipulate files?
4:What arguments are required by System.IO.File.Copy()?
5:How would you rename a file?
6:True or False: Files deleted with System.IO.File.Delete() are sent to the Recycle Bin.
7:What objects are used to manipulate folders?

Exercises

  1. Create a project that enables a user to select a file with the Open Dialog control. Store the filename in a text box. Provide another button that, when clicked, creates a backup of the file by making a copy of it with the extension .bak.

  2. Create a project with a text box on it in which the user can type in a three-character file extension. Include a button that, when clicked, shows an Open File dialog box with the filter set to the extension entered by the user.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.205.205