Exercise: Create a 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.

The answer to the exercise will be included and explained if you attend the Wise Owl course listed below!

Category ==> Visual Basic 2010  (42 exercises)
Topic ==> Drawing forms  (2 exercises)
Level ==> Average difficulty
Course ==> WinForms using VB

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 dating agency application form called frmApplicationForm:

Visual Basic 2010 exercise - Drawing forms (image 1)

Hopefully your form will be less garish!

This form should include:

  • A ComboBox control (retrieve the SelectedItem.Text property)
  • A DateTimePicker control (apply the ToString method to the Value property to get the date chosen)

The Apply now button should display a message like this:

Visual Basic 2010 exercise - Drawing forms (image 2)

Display the preferences chosen in a message box

Check that your form works, then close it down.

This page has 0 threads Add post