Hello Visual Basic.Net

Learn Visual Basic.Net in 15 step-by-step lessons.

hello-world.com
Privacy
Policy

Site map

Hello-World

This lesson uses an array of filenames to dynamically show a picture of a flower.

Start Visual Studio.NET and start a new Windows application called Flowers.

Add the following controls to the form:

A ComboBox: Name: CboFlowers
A PictureBox: Name: PicFlower, SizeMode: AutoSize

Add the code: flowers (Change the code to the folder where your pictures are stored.

At run time, the user selects a flower in the combo box and the flower appears in the picture box.
Flowers: daisy. lily, orchid, rose, tulip,violet.


Copyright © Hello World Publications. All rights reserved worldwide.

hello-world.com
Privacy
Policy

Site map

Hello-World