Lesson 09 Working with. SDI and MDI. MIT 31043: Rapid Application Development By: S. Sabraz Nawaz Senior Lecturer in MIT Dept. of MIT, FMC, SEUSL

Similar documents
Lesson 09 Working with. SDI and MDI. MIT Rapid Application Development By. S. Sabraz Nawaz Lecturer in MIT

Lesson 06 Arrays. MIT 11053, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL

Lesson 05 Methods. MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL

MIT Database Management Systems Lesson 03: Entity Relationship Diagrams

7. Now, click the top menu, on the right side of Help, type "Windows". Implementing an MDI Form

Lesson 05: How to Insert, Update, and Delete Data. By S. Sabraz Nawaz Senior Lecturer in MIT FMC, SEUSL

Lesson 02 Data Types and Statements. MIT 11053, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL

Location of menu elements

Programming with ADO.NET

Lesson 02 Data Types and Statements. MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL

MIT Database Management Systems Lesson 03: ER-to-Relational Mapping

Getting Help in Microsoft Office

CIS 3260 Intro to Programming with C#

Loops and Files. Chapter 04 MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz

MIT Database Management Systems Lesson 01: Introduction

MIT Database Management Systems

Online Access: Login to The Media Audit

Chapter 14. Additional Topics in C# 2010 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

SDI & MDI Applications

DW DIGs Model Windows Tricks

Specification Manager

Server Manager User and Permissions Setup

Managing Document Properties

Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Rapid Application Development By: S. Sabraz Nawaz

Club Leader Access to 4-H Online

Word 2010 Getting Started with Word. Introduction. Getting to know Word The Ribbon. Video: Exploring Your Word 2010 Environment

Applications with Multiple Forms

Database Management Systems MIT Lesson 01 - Introduction By S. Sabraz Nawaz

pending Checking your just got easier. AGENT NET INFO MOBILE PENDING Android BlackBerry iphone View View View

Decision Structures. Lesson 03 MIT 11053, Fundamentals of Programming

The Collections Workbench can be used to view and manage accounts. Click anywhere to continue. Copyright 2012 Pulse Systems, Inc.

WINDOWS NT BASICS

Verifying a Restore Repository

About Course Builder

Introduction. Getting to Know Word The Ribbon. Word 2010 Getting Started with Word. Video: Exploring Your Word 2010 Environment.

Dreamweaver CS3. Chapter 1. Creating a Dreamweaver Web Page and Local Site. Part 1

Visual Studio.NET. Rex Jaeschke

Programming with Microsoft Visual Basic.NET. Array. What have we learnt in last lesson? What is Array?

1. Adjusting Your Work Area

Create a Scrapbook Page

1. Adjusting Your Work Area

Easy Windows Working with Disks, Folders, - and Files

Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures

Chapter 12: Using Controls

Client Care Desktop V4

Engineering Innovation Center LabVIEW Basics

Adding content to your Blackboard 9.1 class

1. Select a cell in the column you want to sort by. In this example, we will sort by Last Name.

19. VB Project and Menu Design

Program and Graphical User Interface Design

Windows Programming Using C#

GUIDE FOR STUDENTS AND PARENTS. An orange ring means you have an assignment.

MOTOR Data Management System Users Guide

Microsoft Windows XP. Operating System. Starting Windows XP. You might be asked to enter your username and password

Using Open Workbench Version 1.1

1. Adapting Your Work Environment

Lesson 01 Introduction

HUSD Technology Department

Client Care Desktop v4.3. Document Manager V4.3

5 Setting Preferences 15 Preferences 15 Configure Chart Colors 16

User Guide. General Navigation

2 SELECTING AND ALIGNING

Microsoft Office Outlook 2007: Intermediate Course 01 Customizing Outlook

Odyssey Quick Start. Quick Links: Launch Pad and Assignments Portfolio and Reports FAQs For Parents GUIDE FOR STUDENTS AND PARENTS

A Guided Tour of Doc-To-Help

Visual Studio.NET. Although it is possible to program.net using only the command OVERVIEW OF VISUAL STUDIO.NET

LESSON 8 COPYING SELECTIONS

Instruction: Download and Install R and RStudio

Locker v Contents. User Guide March 11, Viewing others public locker files Accessing Group Lockers Creating group locker areas Index

You might think of Windows XP as a set of cool accessories, such as

Use Plug-ins. Use Plug-ins 2012

PowerPoint Essentials 1

How to Use Internet Explorer 9

Sema Foundation ICT Department. Lesson - 18

Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related

Introduction to.net Framework and Visual Studio 2013 IDE MIT 31043, Visual Programming By: S. Sabraz Nawaz

AWC Connect. This document has instructions for: Installing the WatchGuard VPN Client and Connecting the VPN to Woodmark

Lesson 15 Working with Tables

Use this document to quickly review the steps needed to get the most out of your Gmail account.

How Does the PI make Pre Review ICF Changes?

Export Desktop Motion Analyzer profiles to Motion Analyzer Online: SolidWorks Motion Study Move Profile

Outlook Web App (Exchange 2010) User Guide Computer Training Solutions Version Revision Date

SharePoint 2010 Having A Uniform Look of Your Website

Content Author's Reference and Cookbook

SharePoint 2010 Instructions for Users

Design Guidelines: Windows. Computer users need to consult multiple sources rapidly. They require the adoption of multiplewindow display strategy.

Step by step to getting R installed on your computer

Project/Highway/Intersection/Evaluation Relationship

GUIDE FOR STUDENTS AND PARENTS. An orange ring means you have an assignment.

Lesson 15 Working with Tables

Work Smart: Microsoft Office 2010 User Interface

Managing Buttons. How to manage shortcut buttons with beas Usability Extension. Beas Tutorial. Boyum Solutions IT A/S

VISION BASICS. Introduction (note materials updated for Vision 6.8.0)

Wise Technologies Ltd.,

BitLocker Drive Encryption Guide

Thermo Scientific. GRAMS Envision. Version 2.1. User Guide

Using VO Windows in a.net Windows Form Application

Copyright 2014 Pearson Education, Inc. Chapter 7. Multiple Forms, Modules, and Menus. Copyright 2014 Pearson Education, Inc.

Getting Started with. PowerPoint 2010

Files.Kennesaw.Edu. Kennesaw State University Information Technology Services. Introduces. Presented by the ITS Technology Outreach Team

Transcription:

Lesson 09 Working with SDI and MDI MIT 31043: Rapid Application Development By: S. Sabraz Nawaz Senior Lecturer in MIT Dept. of MIT, FMC, SEUSL

Single Document Interface (SDI) An SDI application that consists of more than one form can begin with a startup form that directs the user to the other forms of the application. A form that s displayed from a startup form should contain a Close button rather than an Exit button to indicate that the button will close the form and not exit the application and close all open forms. By:MIT 31043 by SaNa @SEUSL 2

Single Document Interface (SDI) When the user clicks the shownewformbutton, the first statement creates a new instance of the newstudententry form. Then the Show method of the form is executed to load and display the form. By:MIT 31043 by SaNa @SEUSL 3

To add a Form title with counting By:MIT 31043 by SaNa @SEUSL 4

Creating Menus By:MIT 31043 by SaNa @SEUSL 5

MenuStrip Control To provide access to the functions of an application, you can add menus to a form. Menus sometimes duplicate the functionality that s already available from the buttons and other controls of a form, but they can also provide access to functions that aren t available anywhere else. 6

Adding Your Own Menus To add a menu item, click the box labeled Type Here and type the name of the menu. You will notice that as you type, another box will appear beside and below it so you can add more items. As an example, type File, Edit, and Help in the MenuStrip. To add submenus, click a menu item it will open up a container for all its submenus. You will also see a box that will allow you to insert sub menus. If you want to add a separator, type the character. You can even create submenus of submenus. You can nest and nest menus if you want to. A submenu which contains another submenu can be identified by the arrow at its right side. 7

Adding Standard Menus Click on the arrow button at the upper right side of the MenuStrip. Then choose Insert Standard Items. Visual Studio will fill the MenuStrip with standard menus such as Creating New files, Saving Files, Loading and many more. 8

Adding Shortcut Keys to a Menu Item If you want complex shortcut combinations, then we have to use the ShortcutKeys property. Select a menu item and then go to the Properties Window and find the ShortcutKeys property. Click the drop down arrow to show you a small window that allows you to choose the shortcut keys for the current menu item. 9

Adding Icons to Menu Items You can add images or icons at the left side of a menu item as seen in the standard menus. We use the Image property to do just that. Click the drop down button of the Image property in the Property Window. Choose which resource to use and then browse for the appropriate image. If the image is too large, then it will automatically be scaled based on the value of the ImageScaling property. 10

Multiple Document Interface (MDI) By:MIT 31043 by SaNa @SEUSL 11

MDIs If the application you are developing requires multiple instances of one or more forms, you may want to use Multiple Document Interface (MDI). You can create a parent form that acts as a container for all of the child forms. You can provide menu to make it easier to display and manage the child forms. By:MIT 31043 by SaNa @SEUSL 12

To change a form as MDI container Set these Property IsMdiContainer WindowState Value True Maximized To show an existing form (another form) under an MDI Double click the relevant menu and add the following code By:MIT 31043 by SaNa @SEUSL 13

Arranging child windows By:MIT 31043 by SaNa @SEUSL 14

To list windows under MDI Click on the MenuStrip. And set its MdiWindowListItem property. By:MIT 31043 by SaNa @SEUSL 15

Creating a simple login form By:MIT 31043 by SaNa @SEUSL 16

Passing login data between forms Step I: declare the variable in MDI Parent Step II: Pass the parameter in the Login form s OK click event By:MIT 31043 by SaNa @SEUSL 17

Passing login data between forms Step III: Instantiate MDI Parent with the value By:MIT 31043 by SaNa @SEUSL 18

To close all forms and MDI itself By:MIT 31043 by SaNa @SEUSL 19

Thank you By:MIT 31043 by SaNa @SEUSL 20