Visual Basic | Form events exercise | Link combobox and WebBrowser control

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 ==> Form events  (1 exercise)
Level ==> Harder than average
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 form called frmWebSite, to contain ComboBox and WebBrowser controls.  The idea is that someone chooses your gender, which then displays a gender-related website.  Here's what Male viewers would see:

Visual Basic 2010 exercise - Form events (image 1)

A rugged site, for rugged males

Here's some code which you could attach to the drop list to make this work:

Visual Basic 2010 exercise - Form events (image 2)

See how much of this makes sense!

Save your changes and close your form.

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