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.

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 ==> Form events  (1 exercise)
Level ==> Harder than average
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 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.

This page has 0 threads Add post