Understand Windows Forms Inheritance 98-362 Windows Development Fundamentals LESSON 2.2.

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

Microsoft Excel 2010 ® ® Tutorial 6: Managing Multiple Worksheets and Workbooks.
Using the Jumble Word Template
Using Multiple Forms! Creating a Splash Screen. Uses of Multiple Forms Includes: Dialog Boxes (appear often in Windows Programs) Splash Screen (a window.
Advanced Microsoft Word Hosted by Jared Hoffman Topics Keyboard Shortcuts Customizing Toolbars and Menus Auto Format & Auto Correct Tabs Inserting Pictures.
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Copyright 2007, Paradigm Publishing Inc. POWERPOINT 2007 CHAPTER 1 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Create Presentation Open, Save, Run, Print, Close,Delete.
Create a Narrated Story with PowerPoint. Basics Enter Text. (Click in the text box and start typing. If a text box is not visible, go to Insert > Text.
 Experiment with the Design features to get the look you want for your presentation.  Most design templates will keep the design the same on all your.
PYP002 Intro.to Computer Science Microsoft Word1 Lab 07 Creating Documents with Efficiency and Consistency.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Using Microsoft Outlook: Part II. Objectives Build on existing Outlook knowledge and skills Calendar Tasks Journal Notes Next.
Beginning Programming with the Visual Studio.NET Environment.
Using This Training This training contains a PowerPoint presentation that will guide you through the Blood Bank updates for the Cerner Millennium Upgrade.
Databases and LINQ Visual Basic 2010 How to Program 1.
Advanced Forms Lesson 10.
Create Database Tables
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Lesson 17 Getting Started with Access Essentials
Duty Log and Chat Setup SSG Frese, Jerome S. Sensor Manager Cell 12 MDD.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. M I C R O S O F T ® Creating Charts Lesson 6.
Dreamweaver MX. 2 Overview of Templates n Templates represent a web page design or _______ that will be common to multiple pages. n There are two situations.
Automating Database Processing
Quick guide on making PowerPoint slides  PowerPoint is a presentation program  A PowerPoint slideshow is a stack of slides being presented one after.
How to Make a Power Point Presentation What to Do First  Open the Microsoft PowerPoint program by double clicking on it.  Create a new presentation.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
PowerPoint Created by Alison Von Canon. What is PowerPoint? PowerPoint is a complete presentation graphics package. It gives you everything you need to.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Welcome to PowerPoint for Beginners In-Tech Training Elementary School Teachers Day 2 January 13 and 14, 2003.
Creating a Dynamic Web Page Template Module 5: Beyond the Basics with Expression Web LESSON 10.
© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Lesson # 9 HP UCMDB 8.0 Essentials.
Editing Basics Lesson 8. Skills Matrix SKILL #MATRIX SKILL 2.2.1Cut, copy, and paste text 2.2.2Find and replace text 4.1.1Insert building blocks in documents.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
Click the mouse to continue. Using styles A style is a saved collection of formatting, such as a font, font size, pattern, and alignment, that you can.
Program Editor Macros – for PC SAS. Objectives What are program editor macros? SAS code that is saved and available any time you open SAS When to use.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT OUTLOOK Lesson 3 – Working with Other Outlook Tools.
Install a Windows Service Application Windows Development Fundamentals LESSON 3.2.
Understand How to Create New Controls and Extend Existing Controls Windows Development Fundamentals LESSON 2.3A.
1 Excel Lesson 5 Working with Multiple Worksheets and Charts Microsoft Office 2010 Introductory Pasewark & Pasewark.
Identify Windows Application Types Windows Development Fundamentals LESSON 1.1.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Create Windows Setup and Deployment Projects Windows Development Fundamentals LESSON 5.2.
Understand Databound Controls Windows Development Fundamentals LESSON 4.2A.
IPDF toolkit – brought to you by PwC How to use this Interactive PDF (iPDF) template This template is part of a self-service iPDF toolkit. Use this to.
Creating New Forms Projects can appear more professional when using different windows for different types of information. Select Add Windows Form from.
Lesson 3: Working with Forms. Learning Objectives After studying this lesson, you will be able to: Identify form design elements Create and print forms.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
1 Access Lesson 1 Understanding Access Fundamentals Microsoft Office 2010 Fundamentals Story / Walls.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Lesson 1: Learning Worksheet Fundamentals Microsoft Office Excel 2003 Lesson 1 Learning Worksheet Fundamentals.
Tutorial 6: Managing Multiple Worksheets and Workbooks
Lesson Two: Building Location Patient Lists
Lesson Five: Building Custom Patient Lists
Lesson Four: Building Custom Patient Lists
Using this template set
PowerPoint Manual A guide to using PowerPoint to make your own “Jeopardy” Game from a prepared game template. Created by: Teri Bohr for: ETC 567.
Lesson Three: Building Location Group Patient Lists
Lesson Four: Building Custom Patient Lists
Lesson Four: Building Medical Service Patient Lists
Creating a slide Open the PowerPoint program. Powerpoint automatically opens a new presentation. A new title slide will appear for you to work with.
Using this template set
How To Password Protect A PDF Free With or Without Acrobat.
Presentation transcript:

Understand Windows Forms Inheritance Windows Development Fundamentals LESSON 2.2

Windows Development Fundamentals LESSON 2.2 Lesson Overview How can developers apply Windows ® forms inheritance in applications? In this lesson, you will learn about:  Reasons for using forms inheritance  Inheriting forms within the Designer  Inheriting forms in code

Windows Development Fundamentals LESSON 2.2 Anticipatory Set  List qualities that you have inherited from your parents. Which of your features are similar to your parents? Which of your features are different?

Windows Development Fundamentals LESSON 2.2 Visual Inheritance in Forms  Allows the developer to create multiple forms that share common elements and functionality Two primary reasons for using forms inheritance:  Reusability  Consistency

Windows Development Fundamentals LESSON 2.2 Reusability  If multiple forms will have a similar appearance, the design work can be done once and then shared.  A change (or correction) needs to be made only once—the other forms automatically “inherit” the changes. Consistency  Forms inheritance make it easy to keep forms looking consistent, just as the template in a Microsoft PowerPoint presentation ensures that each slide looks consistent.

Windows Development Fundamentals LESSON 2.2 Inheritance Terminology  Base (or parent) form: A form that is used to define one or more additional forms  The form on which other forms will be “based”  Inherited (or child) form: A form that is based on (or “inherits from”) a base form Base Child 1Child 2Child 3

Windows Development Fundamentals LESSON 2.2 frmContact frmSalesLead frmClient frmContact is the base form. frmSalesLead and frmClient are inherited forms—they will “inherit” elements (buttons, labels, etc.) from the base class. Changes to controls in frmConact will result in the same changes on frmSalesLead and frmClient (when the project is rebuilt).

Windows Development Fundamentals LESSON 2.2 Notes:  Each inherited form can be modified independently.  — The base form can define the common elements (buttons for “New,” “Save,” and “Delete,” for example) so that they don’t have to be duplicated manually.  Changes to the base form are reflected on all inherited forms when the project is built, not when the base form is saved.  — To build a base form, choose Build Solution from the Build menu.

Windows Development Fundamentals LESSON 2.2 Forms Inheritance with the Designer 1. The project must first be built (by selecting Build Solution from the Build menu). 2. Choose Add Windows Form from the Project menu (or by right-clicking the project name in the Solution Explorer). 3. Select Inherited Form (from the Windows Forms category), choose a name, and click Add. 4. The Inheritance Picker will open and display all forms from the current project. 5. Select the base form and click OK.

Windows Development Fundamentals LESSON 2.2 Forms Inheritance in Code  Where the form’s class is declared, add a reference to the base form (including namespace) using Inherits (in Visual Basic ® ) or : (in C# ® )  Visual Basic: Public Class frmClient Inherits frmContact  C#: public class frmClient : frmContact

Windows Development Fundamentals LESSON 2.2 Lesson Review  What is forms inheritance?  Why is forms inheritance useful to developers?  How can you create an inherited form using the Designer?  How can you create an inherited form programmatically?