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).
- How does changing the ForeColor of the form change the label?
- How does changing the ForeColor of the form change the textbox? (Be sure to enter some text in the TextBox before answering).
- How does changing the ForeColor of the form change the button?
Change the font size of the form.
- How does changing the font size of the form change the label?
- How does changing the font size of the form change the textbox?
- How does changing the font size of the form change the button?
- If changing the value of a property of the form affects one of the objects it contains, how can you override the change?