Visual Basic | Drawing forms 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.

Software ==> Visual Basic  (46 exercises)
Version ==> Any version of VB
Topic ==> Drawing forms  (2 exercises)
Level ==> Average difficulty
Subject ==> Visual Basic 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 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.

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