In this chapter, you learned how to put finishing touches on your Visual Basic application's interfaces through the addition of a menu and
Now, before you move on to Chapter 5, take a few minutes and enhance the Lottery Assistant game by implementing the following challenges.
Add a menu item under the Help menu that provides instructions for using the Lottery Game using the MessageBox.Show method.
Add a toolbar to the Lottery Assistant game and define
Going back to the material that you learned in Chapter 3, "Creating an Application interface," create ToolTips for each TextBox and add a status bar to your application.
When you interact with a computer application, the information that you provide and the actions that you take are
Specifically, you will learn how to:
Define constants, variables, structures, and arrays
Properly specify data types
Convert data from one data type to another
Specify variable scope
In this chapter, you will learn how to create a Visual Basic game called the Story of Mighty Molly. In this game, the player helps to tell the story by providing answers to questions that are designed to collect specific data that is then used to complete the story. Figures 5.1 through 5.5 provide a
Figure 5.1:
The Story of Mighty Molly game begins by prompting the player to click on each of six
Figure 5.2:
Players' input is collected using the
InputBox()
function.
Figure 5.3:
Buttons change colors to
Figure 5.4:
A progress bar Located on the status bar indicates when all required information has been collected.
Figure 5.5:
Data input collected from the player is then plugged into the story line and displayed for the player to enjoy.
By the time you have created and run this game, you'll have learned how to declare