Visual Basic Menu Editor

Slides:



Advertisements
Similar presentations
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Advertisements

MS-Word XP Lesson 1.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Using Macros and Visual Basic for Applications (VBA) with Excel
Using Multiple Forms! Creating a Splash Screen. Uses of Multiple Forms Includes: Dialog Boxes (appear often in Windows Programs) Splash Screen (a window.
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
Chapter 1 Databases and Database Objects: An Introduction
Using the Visual Basic Editor Visual Basic for Applications 1.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Customizing Forms and Writing QuickBooks Letters Lesson 15.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Adding Controls to User Forms. Adding Controls A user form isn’t much use without some controls We’re going to add controls and write code for them Note.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
Chapter 1 Databases and Database Objects: An Introduction
To make a graph in Excel, first you have to highlight the data you want to graph. To do this, click and drag over the “blocks” you need. Be sure to include.
ACCESS Part 2. OBJECTIVES  Use the Form Wizard  Create a split form  Use Form Layout View  Add fields to a form  Modify form controls  Create calculations.
Making Mass Mailings Easier Using the Mail Merge Feature in Microsoft Word.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
OCC Network Drives  H:\  P:\ 
Microsoft Publisher 2010 Chapter 7 Advanced Formatting and Merging Publications with Data.
Chapter Two Creating a First Project in Visual Basic.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Creating an Application System Using Macros, Wizards, and the Switchboard.
Lesson 10 - Mail Merge and Reviewing Documents Advanced Microsoft Word.
Lesson 1. Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down.
Visual Basic A Quick Tutorial VB Review for ACS 367.
On Line Microsoft Word Tutorial & Evaluation Begin.
If you don’t have Google Earth downloaded already, you can go to to get it.
Personal Planning System The Adding a Program to the Library Enterprise Edition.
>>0 >>1 >> 2 >> 3 >> 4 >>
Problem: Take Two Numbers, Add Them Together And Display The Results. Now To Build The Flowchart… We Probably Need One Like This… Let’s Add The Routines…
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
1 Customizing Forms and Writing QuickBooks Letters Lesson 15.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Multiple Forms and Menus
Word Lesson 1 Word Basics
International Computer Driving Licence Syllabus version 5.0
Maintaining a Database Using the Design and Update Features of Access
Customizing the Quick Access Toolbar in Microsoft Office
Practical Office 2007 Chapter 10
Chapter 1: An Introduction to Visual Basic 2015
European Computer Driving Licence
Planning and Building a Presentation
Mail Merge And Macros in MS WORD
Microsoft Official Academic Course, Microsoft Access 2013
Access Project 8 Using Visual Basic for Applications (VBA) and Creating Multi-Page Forms.
Creating and Using a Database
EXCEL Introduction.
Chapter 7 Advanced Formatting and Merging Publications with Data
Chapter 7 Advanced Form Techniques
Outlook and .
Microsoft Official Academic Course, Access 2016
Lessons Vocabulary Access 2016.
Chapter 1 Databases and Database Objects: An Introduction
Exploring Microsoft Office Access 2010
Process DD Form 1081-Advance
Getting around in Windows and VB
European Computer Driving Licence
Learning the Basics of Microsoft Word 2010 for Microsoft Windows
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Visual Basic Menu Editor Menu Creation 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Goals of This Lesson Create Application (form) Menus Offer Menu options that let the user: Access Files Print Reports Calculate totals etc. Help To display Information About the System 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Create A Project From the Start Menu Select Programs, Then Microsoft Visual Studio Activate the VB 6 Program From the Option Box Click Icon to create a Project 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker The Menu Wizard Press Ctrl-E To activate Menu Editor It will appear like this graphic The editor will help you design your application menus. 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Menu Editor Box Menu Properties Control List Box 8 April 2019 Prepared By: Deborah Becker

The Menu Property Section In The Menu Property Section You will designate the names & captions of your menu controls. Here is where you define menu options 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Step 1: Add Menu Options The Screen will look like this… 8 April 2019 Prepared By: Deborah Becker

Step 2: Add these options Files Print Reports Calculate Help Include Accelerator Keys 8 April 2019 Prepared By: Deborah Becker

at 3 steps for each Option. Press Ctrl-E To Activate Menu Editor Type–&File Maintenance (in the Caption box) Press tab to advance to the Name box Type–mnuFile (in the Name Box) Leave all other field alone & click—Next to prepare for the other menu options 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Step 3, Continued Type “Print &Reports” in the Caption Type mnuPrint (in the Name Box) Press Next to prepare for the next option Type &Ca&lculate ” (Caption) Type mnuCalculate (in the Name Box) Type &Help in the Caption Type mnuHelp (in the name box) 8 April 2019 Prepared By: Deborah Becker

The Menu editor should look like this 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Test The Menu Click the button to close the menu editor; and save your project Press F5 to run the application Because we have not added any procedures nothing happens when you click on the menu bar at the top of the form Press the stop button on the edit bar Press Ctrl-E to finish creating the menu 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Insert a blank row: Highlight Print &Report in the Menu control list Click the button Add Ce&real Master to Caption and mnuFileCereal to name Click the Menu Editor’s right arrow button VB puts an ellipses Before Ce&real Master ... This will insert a blank line between &File and &Color and allow you to add a menu option to the File menu You must tell Visual Basic that you are adding a pull down menu bar and not a primary menu option. This tell VB that the current item will be a menu option and will not appear on the menu bar. 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Add These Other Files Add these Options to the File Menu Sweet Cereal File Manufacturer file Exit Add these Options to the Print Menu Sweet Cereal List Manufacturer Cereal List Cereal Master List 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Add These Other Files Add this Option to the Calculate Menu Summary Data Finally add this Option to the Help Menu About 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker The Help About Form Press Projectadd Form Select the About Form from the list of wizard forms Be careful using accelerator keys Don’t use letters that are used by Microsoft, O is used for Open X is used or Cut x is used for Exit Look at the menu accelerator keys 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Connecting Your Menu We will only connect the Exit option on the File Maintenance menu and the About option on the Help Menu. 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Connecting The Exit While the frmFormName is active as an object; click on the File menu and then click on the Exit option This will activate the code screen with the Private Sub mnuFileExit_Click() End Sub --already waiting for you Add the code in the graphic Unload Me 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Activate Help About While the frmFormName is active as an object; click on the Help menu and then click on the About option This will activate the code screen with the Private Sub mnuHelpAbout_Click() End Sub already waiting for you Add the code in the graphic frmAbout.Show vbModal 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Adding Shortcut Keys From the frmFormName object view press Ctrl-E to activate the Menu Editor Highlight the Cereal Master option in the menu list box Click on the Shortcut combo box Select from the predefined list 8 April 2019 Prepared By: Deborah Becker

Prepared By: Deborah Becker Possibilities I selected these for the File Menu Cereal Master File Ctrl-E Manufacturer File Ctrl-U Sweet Cereal File Ctrl-T Exit F11 8 April 2019 Prepared By: Deborah Becker