Start Here!™ Learn Microsoft Visual Basic® 2012 by Michael Halvorson

Start Here!™ Learn Microsoft Visual Basic® 2012 by Michael Halvorson

Author:Michael Halvorson [Michael Halvorson]
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / Visual BASIC
ISBN: 9780735672963
Publisher: Microsoft Press
Published: 2012-12-05T16:00:00+00:00


Select File | Save All to save your changes.

Click the Start Debugging button.

The application runs in the Visual Studio IDE, and it looks exactly like it did when you last ran the program. The opening beach scene appears, along with a list box full of items and an empty green text box. But now that you’ve added your Visual Basic code, the list box and text box are fully functional.

Click Strawberry Shortcake in the list box.

Because Strawberry Shortcake is the first item in the list box, Visual Basic places the number 0 in the SelectedIndex property of the list box object. Visual Basic then fires the SelectionChanged event, which runs your new event handler. The bm instance is initialized first, and then the Select Case decision structure executes the code block corresponding to the first list box item. This code block loads a photo of the strawberry shortcake dessert into the image box and also displays a description of the item in the text box. Your screen should look like this:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.