COMPUTER PROGRAMMING I Apply Procedures to Develop Menus,

Slides:



Advertisements
Similar presentations
What Was I Thinking??. Key Terms 1. Control 1. Control 2. Design Mode 2. Design Mode 3. Event 3. Event 4. Form 4. Form 5. Interface 5. Interface 6. Properties.
Advertisements

JustinMind: Dynamic Panels
Using VB with MS Applications R. Juhl, Delta College.
Creating a User Form. A Better Interface Our programs can use input boxes for input and write on the spreadsheet page for output This works ok but is.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
110-H1 More VB Tools Creating a Menu: What is a menu? a group of (related) commands displayed at at the top of an application Top level menu Disabled command.
© by Pearson Education, Inc. All Rights Reserved.
Spring PowerPoint Basics Why is it a good tool to use? Easier than 3 X 5 Note Cards Organized presentations are “heard” better.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
E 3 PowerPoint Basic PP Animated PP Powered PP MENU Next Creating a Basic PowerPoint Presentation: Templates Text Graphics.
1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Slide 1 Chapter 2 Visual Basic Interface. Slide 2 Chapter 2 Windows GUI  A GUI is a graphical user interface.  The interface is what appears on the.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Chapter 8: String Manipulation
Visual Basic Chapter 1 Mr. Wangler.
5-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
IE 411/511: Visual Programming for Industrial Applications
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Menus, Common Dialog Boxes, Sub Procedures, and Function Procedures.
Multiple Forms, Container Controls, AddHandler This presentation is based on the Forms and ContainerControls VB Projects 1.
Chapter 12: Using Controls. Examining the IDE’s Automatically Generated Code A new Windows Forms project has been started and given the name FormWithALabelAndAButton.
RPMS - EHR v1.1 Techie Class Really Powerful at Measuring Stuff.
1 Working with Menus and Dialog Boxes. 2 Objectives You will be able to Create and edit menus for Windows Forms applications. Write code to handle menu.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Integrated Development Environment (IDE)
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
CSD 340 (Blum)1 Using Visual Studio CSD 340 (Blum)2 Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005.
Chapter 2 – Introduction to the Visual Studio .NET IDE
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
How to Design a Page, Part 2 HOWE/ANDERSON. Step 1: Login   Job No  User ID/ Password.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Creating a Power Point Presentation Open Microsoft Power Point Create a new presentation using a blank presentation. Choose an Auto Layout Select the sample.
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
COMPUTER PROGRAMMING I 3.02 Apply Properties Associated with the Controls.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Visual C++ Programming: Concepts and Projects Chapter 10B: Recursion (Tutorial)
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Visual Basic.NET BASICS Lesson 14 Menus and Printing.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Chapter 7 Multiple Forms, Modules, and Menus. Section 7.2 MODULES A module contains code—declarations and procedures—that are used by other files in a.
COMPUTER PROGRAMMING I Apply Procedures to Develop List Box and Combo Box Objects.
Multiple Forms and Menus
Visual Basic.NET Windows Programming
Apply Procedures to Develop Menus, List Box and Combo Box Objects
Chapter 1: An Introduction to Visual Basic 2015
Apply Procedures to Develop Message, Input, and Dialog Boxes
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Program and Graphical User Interface Design
Objective 8.02 Apply Procedures to Create Picture Boxes using Images.
3.01 Apply Controls Associated With Visual Studio Form
Apply Procedures to Develop Menus, List Box and Combo Box Objects
Program and Graphical User Interface Design
Chapter 2 – Introduction to the Visual Studio .NET IDE
Creating and Sending Message Links
Presentation transcript:

COMPUTER PROGRAMMING I Apply Procedures to Develop Menus,

Objective/Essential Standard Essential Standard 6.00 Apply tools to obtain and validate user input. Indicator 6.01 Apply procedures to develop menus, List Box and Combo Box objects (3%)

Adding a Menu

Why Add a Menu? Adding a menu increases the interactivity of your application. The menu allows the user to interface with your application. What menus can be added to your application form? In this course, we will add a MenuStrip to our form.

The MenuStrip Control Adds a menu bar to your form Use the prefix mnu when naming your menu Example: mnuMain Once you click the MenuStrip control, it doesnt matter where you click on the form. It will automatically place the menu at the top.

The MenuStrip Control Note that when you add the MenuStrip, it puts an icon in the gray area at the bottom called the component tray.

The MenuStrip Control Select the MenuStrip control Select the (Name) property to change the name Use the prefix mnu

The MenuStrip Control Click in the text area of the MenuStrip control, type Program. Note this changes the text property and the name property of this menu entry in the Properties area. You can add additional menu entries at the same level or add submenu items.

The MenuStrip Control To add code to your menu item, go to your code view. Right Click View Code View Menu Code F7 Double Click the Menu Item In the Class Name List, select your menu object. In the Method Name List, select the appropriate method. In this case, we are selecting the Click event

The MenuStrip Control Type your code inside the Click event. For example if you wanted the application to close when Program is selected, type the following: Application.Exit() Note that an Autolist is provided as you type.

Form – Backcolor property The form has a new property called Backcolor. Backcolor – changes the color of the background of the form Ex: BackColor = Color.Blue The keywork Color. will generate a list of system colors to choose from.

Try It! Create a new application called menuExample. Save it in the folder as directed by your teacher. Add a MenuStrip control Properties: Name: mnuMenu Add an entry so that your form matches the image. Properties: Name: mnuChgClr Name: mnuChgBlu Name: mnuChgRed Name: mnuExit

Conclusion This PowerPoint provided an overview of adding a menu in Visual Studio. For more information us/library/2chz8edb(v=VS.80).aspx us/library/2chz8edb(v=VS.80).aspx