Visual C# | Creating forms exercise | Dating form including DateTimePicker and ComboBox

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Software ==> Visual C#  (79 exercises)
Version ==>
Topic ==> Creating forms  (4 exercises)
Level ==> Average difficulty
Subject ==> C# training

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Create a new form called frmApplicationForm which people can use to apply for membership of your dating agency:

Visual C Sharp 2005 exercise - Creating forms (image 1)

The formatting is completely up to you!

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)

Get the Apply now button to display a message like this:

Visual C Sharp 2005 exercise - Creating forms (image 2)

Use a MessageBox to display the user's choices

Test that your form works!

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads Add post