Home > Articles > Programming > Visual Basic

  • Print
  • + Share This
This chapter is from the book

Workshop

Quiz

  1. What type of Visual Basic project creates a standard Windows program?

  2. What window is used to change the attributes (location, size, and so on) of a form or control in the IDE?

  3. How do you access the default event (code) of a control?

  4. What property of a picture box do you set to display an image?

  5. What is the default event for a button control?

Answers

  1. Windows Forms Application

  2. The Properties window

  3. Double-click the control in the designer.

  4. The Image property

  5. The Click event

Exercises

  1. Change your Picture Viewer program so that the user can also locate and select GIF files. (Hint: Change the Filter property of the OpenFileDialog control.)

  2. Create a new project with a new form. Create two buttons on the form, one above the other. Next, change their position so that they appear next to each other.

  • + Share This
  • 🔖 Save To Your Account