Visual Basic 2010 Express Tutorial 22 - Adding a Menu (SpeakABCs Part 6 of 11)



To add a menu to your application, click on Menus & Toolbars within the Toolbox. and drag and drop MenuStrip (Context Menu Strip is for right mouse clicks) into your form.

Place an ampersand before the letter you want to use with the alt key, i.e. &File
E&xit

The Shortcutkeys will display the keyboard shortcuts. ie Alt F4 for Exit
Ctrl Shift A for About.

Once the names of the menu items are typed in, double click on the names and VB will create the private sub where you place the code for the menu to do something.

The menu strip can be loaded into the form by going to properties and selecting the menustrip that you want from MainMenuStrip

SpeakABCs Tutorials
Tutorial 18 - Form Setup and KeyPresses
Tutorial 19 - RadioButtons adn ASCII Values
Tutorial 20 - Changing Background and Font Color With the Color Dialog
Tutorial 21 - Playing Sound Files
Tutorial 22 - Adding a Menu
Tutorial 23 - Inserting a SplashScreen
Tutorial 24 - Adding an AboutBox
Tutorial 25 - Formatting Text and a TextBox to Make a HelpBox
Tutorial 26 - Adding an Icon
Tutorial 27 - Wrapping Up the Application

You are more than welcome to take the code and do what you please with it - minus the girl’s wav files (please make your own). The compiled SpeakABCs applications, on the download page, must not be distributed or modified. The compiled SpeakABCs applications are a little different than the one shown in these tutorials.

The SpeakABCs applications on the download page, were built with XOJO (RealBasic). XOJO (RealBasic) is considered to be somewhat of a Visual Basic for Mac.
For more information on XOJO (RealBasic) see www.xojo.com

SpeakABCs Downloads (Please do not distribute the Girl’s Voice Wavs. Please Make your own Wavs)
SpeakABCsCode.zip
WAV_Folder.zip
ABC_icons.zip




The current version of Visual Basic can be downloaded for free at Microsoft's Website