Microsoft Developer
Creating forms exercise
Average difficulty

This Microsoft Developer CREATING FORMS exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl VISUAL C# 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.

Exercise: Dating form including DateTimePicker and ComboBox

A full answer to this exercise is provided as part of the training course!

1) Create a new form called frmApplicationForm which people can use to apply for membership of your dating agency:
Exercise screen-shot 1219 The formatting is completely up to you!
2) Your form should include:
  • A DateTimePicker control (apply the ToString method to the Value property to get the date chosen)
  • A ComboBox control (retrieve the SelectedItem.Text property)
3) Get the Apply now button to display a message like this:
Exercise screen-shot 1220 Use a MessageBox to display the user's choices
4) Test that your form works!

Thank you for showing an interest in this Visual C# 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.

All content copyright Wise Owl Business Solutions Ltd 2008.  All rights reserved..