This Microsoft Visual Studio CONSTANTS, ARRAYS AND ENUMERATIONS exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl VISUAL BASIC 2005 WINDOWS FORMS course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
A full answer to this exercise is provided as part of the training course!
| 1) | Create a form for entering someone's name and age (or amend one you have previously created): |
We will divide people into groups according to their age
|
|
| 2) | Attach code to the button so that you get a different message according to your age. Here is what the code will look like - you need to write the enumeration to get this to work: |
You need to create an enumeration called AgeBand
|
|
| 3) | Test that your form works, then close down any open forms. |
Thank you for showing an interest in this Visual Basic 2005 Windows Forms training course! As mentioned above, full answers to this and other exercises are provided on the course. On all Wise Owl scheduled courses delegates can take away these model answers (together with their own efforts!) on a free USB stick.
Recommended sites: C# corner | Computer tutorials | Training classes