UCF homepage
Lars P. Linden
MIS Dept.
University of Central Florida

demo program

Lab 02

Forms and Controls

About This Lab

The purpose of this lab is to design a form and write some simple lines of code that assign values to the properties of code.

  1. Create a new project.
    • Rename the Form's .vb file in the Solution Explorer

  2. Place the following controls on that form:
    • 2 Labels
    • 2 TextBoxes
    • 2 Buttons (one for "Change Property" and one for "Close")

  3. Rename these controls (that is: set the (name) property).

  4. Set the Text property of the Label and Button. The buttons should be set to "Change Property" and "Close".

  5. Double-click on your "Change Property" button and add an assignment statement that will assign the value of False to the "Close" buttons Enabled property.
    • Test that this works by building the application, clicking on the "Change Property" and making sure that the "Close" button becomes dimmed and is disabled.

  6. Double-click on your "Close" button and add the Me.Close() statement.
    • Test that this works.


  7. Set the form's AcceptButton and CancelButton properties.
    • The AcceptButton property should be associated with the "Change Property" button's event handler.
    • CancelButton property should be associated with the "Close" button's event handler.
    • Test that these access keys work.


  8. Save your application and exit Visual Studio.

  9. The final task is to create a zipped file of your project.
    • One way to test this is to use a flash drive to transport your zip file to another computer in the classroom, unzip your project, launch it, and see if it works.




  10. This is the end of the lab. Remember that you can use the "zip" procedure to keep "safety" back-up copies of your work-in-progress projects as the semester goes along.


<< back to course home


Fall 2009