Graphical User Interface and Common Dialog

Good Essays
7/31/2014

Objectives




Chapter 5




• Menus, Common
Dialog Boxes, Sub
Procedures, and
Function
Procedures

McGraw-Hill

5-2

Copyr ight © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved.

Defining Menus (1 of 2)

Menus





Menu Bar

• Contains menus which drop down to display list of menu items

– Can be used in place of or in addition to buttons




Create menus and submenus for program control.
Display and use the Window s common dialog boxes. Create context menus for controls and the form.
Write reusable code in sub procedures and function procedures and call the procedures from other locations.

to execute a procedure
– Menu items are controls with properties and events.



Easy to create menus for a Window s form using the Visual Studio environment’s Menu Designer
Menus w ill look and behave like standard
Window s menus.

MenuStrip component is added to a form.
MenuStrip is a container to w hich ToolStripMenuItems,
ToolStripComboBoxes,
ToolStripSeparators, and
ToolStripTextBoxes can be added. 5-3

5-4

The Text Property

Defining Menus (2 of 2)




Holds the words that appear on the screen — like the
Text property of a button or label
To conform to Windows standards, the first menu’s Text property should be File, with a keyboard access key.

• Use the ampersand (&) in the text to specif y the key

The MenuStrip component appears in the component tray below the f orm and the Menu
Designer allows y ou to begin ty ping the text for the menu items. •

5-5

to use f or key board access.

Enter and change the Text property for each menu and menu item using the Menu Designer or make the changes in the Text property using the Properties window. 5-6

1

7/31/2014

The Name Property




The MenuStrip Items Collection



The File menu item that is added is automatically named FileToolStripMenuItem.
The items are named so w ell that there w on’t be a need to change the Name property of any menu component. • If the Text property is

You May Also Find These Documents Helpful

  • Powerful Essays

    Graphical User Interface

    • 2648 Words
    • 11 Pages

    eGraphical user interface From Wikipedia, the free encyclopedia Jump to: navigation, search "GUI" redirects here. For other uses, see GUI (disambiguation). A screenshot of the GNOME Shell GUI. The Xerox Alto was the first device to use a graphical user interface. In computing,[1] graphical user interface (GUI, sometimes pronounced 'gooey ')[2] is a type of user interface that allows users to interact with electronic devices through graphical icons and visual indicators such as secondary…

    • 2648 Words
    • 11 Pages
    Powerful Essays
  • Good Essays

    Graphical User Interface

    • 288 Words
    • 2 Pages

    Some common computer icons are taken from the broader field of standardized icons used across a wide range of electrical equipment. Examples of these are the power symbol and the USB icon, which are found on a wide variety of electronic devices. The standardization of electronic icons is an important safety-feature on all types of electronics, enabling a user to more easily navigate an unfamiliar system. As a subset of electronic devices, computer systems and mobile devices use many of the same icons;…

    • 288 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Graphical User Interface

    • 559 Words
    • 3 Pages

    Week 3 Course Project (BIS450) Topic: Interface and Processing Required User interface: The user interface shall be built to provide an easy-to-use graphical interface that includes dropdown menu, labels, summit button, icons, pull-down menus, buttons, and hyperlinks. It also should adhere to commonly accepted user interface guidelines on windowing systems. For instance a button should perform like a button and not like a checkbox. Buttons will be used for single independent actions that are…

    • 559 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    the same illness. 1.1 Launch the SPSS Modeler: Open the SPSS Modeler by going to the Start menu  All Programs  IBM SPSS Modeler 15.0  IBM SPSS Modeler 15.0. Select “Open an existing project” and double-click on “More files…”. In the Open dialog window, goto the path of “N:\DWDM\SPSSModeler\Demos” and double-click on the “drug.cpj” file to open it. The SPSS Modeler should open and displays as Figure 1. Control Panel Main Panel Current Working Space Project Space Module Panel…

    • 1442 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    VBScript Input/Process/Output Lab Objectives In this lab, students will complete the following objectives. 1 • Create a VBScript Program using NotePad++. 2 • Learn various objects and methods used for data input. 3 • Learn various objects and methods used for the display of data. Element K Network Connections For this lab, we only need to connect to vlab-PC1. This is the computer on the left side. If you leave the cursor on the PC icon for a few seconds, a tool-tip message…

    • 2429 Words
    • 10 Pages
    Good Essays
  • Good Essays

    make up a computer system. Software is a general term for the programs that control the computer system. Systems software are programs that allow the hardware to run properly, e.g. operating systems. Applications software are programs that allow the user to do specific tasks, e.g. spreadsheets. The central processing unit (CPU) interprets and executes the commands from the hardware and software, it used to be made up of numerous small integrated circuits. Microprocessor is now used instead of CPU…

    • 1202 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Programming in VB 2012 is different from traditional programming environments because first you should (A) (B) (C) (D) 2. write the code. input the data. name the buttons. draw the user interface. D GUI stands for (A) (B) (C) (D) graphical user interface. graphing user introduction. graphical unit interface. graphical user input. A 3. Visual Basic first appeared about ten years ago. (T/F) F 4. A mouse click is an example of an event. (T/F) T Section 2.2 Visual Basic Controls 1. Press F4 to (A)…

    • 1798 Words
    • 16 Pages
    Satisfactory Essays
  • Good Essays

    Creating Basic 3D Objects 1 Products: AutoCAD 2011 for Mac or later Audience: New users to 3D Prerequisites: Working knowledge of 2D drafting Time to complete: 15 minutes Download the Tutorial File Before beginning the lessons, download the tutorial. ■ Download create_basic_3d_objects_acdmac.zip from http://www.autodesk.com/autocadformac-tutorials. In This Tutorial The lessons in this tutorial do not need to be completed in the presented order. In this tutorial, you learn how to…

    • 1186 Words
    • 5 Pages
    Good Essays
  • Better Essays

    User Interfaces

    • 1115 Words
    • 5 Pages

    analyze the importance of interface design and how much interface presents in our everyday life. The most of our daily tasks is accomplished with a use of at least one type of interface. The basic purpose of an interface is to help use to communicate with a machine. The three most common kinds of an interface are: touch sensitive interface, menu interface and graphical user interface. Using smart phones, laptops, going to the ATM machine is considered as using interface. Even writing this case study…

    • 1115 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    hard drive partition on your computer. From the menu items, select "Extend Volume." A new window is shown where you enter the new size for the disk partition. Click "Next" at the opening window. Step Four Select the unused disk space in the opening dialog window. This unused space is used to add disk space to the partition in the disk management tool. The unused disk space can be on the current drive or a new drive you've recently installed into the machine. Enter the size for the new disk partition…

    • 367 Words
    • 2 Pages
    Satisfactory Essays