Form properties

This assignment shows the effect of changing certain form properties on the objects contained in the form. It also encourages you to learn by experimenting.

Create a form with a button, a textbox and a label on it. Do an experiment in which you change the ForeColor property of the form. (You may answer these questions in English).

  1. How does changing the ForeColor of the form change the label?
  2. How does changing the ForeColor of the form change the textbox? (Be sure to enter some text in the TextBox before answering).
  3. How does changing the ForeColor of the form change the button?

    Change the font size of the form.

  4. How does changing the font size of the form change the label?
  5. How does changing the font size of the form change the textbox?
  6. How does changing the font size of the form change the button?
  7. If changing the value of a property of the form affects one of the objects it contains, how can you override the change?