Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab8 Working with Forms Forms Collection Multiple Forms.

Slides:



Advertisements
Similar presentations
View-Based Application Development Lecture 1 1. Flows of Lecture 1 Before Lab Introduction to the Game to be developed in this workshop Comparison between.
Advertisements

1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
Microsoft® Small Basic
Chapter 1: An Introduction to Visual Basic 2012
Using Multiple Forms! Creating a Splash Screen. Uses of Multiple Forms Includes: Dialog Boxes (appear often in Windows Programs) Splash Screen (a window.
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Excel and VBA Creating an Excel Application
Flowchart Start Input weight and height
Slide 1 Forms v Parts of a form v Form: Program User Interface v Controls are contained inside forms v Control event handlers are contained inside forms.
Multiple-Document-Interface (MDI) Windows MDI programs enable users to edit multiple documents at once. MDI programs enable users to edit multiple documents.
Graphical User Interface (GUI) A GUI allows user to interact with a program visually. GUIs are built from GUI components. A GUI component is an object.
MDI windows Single-document-interface (SDI)
CVEV 118/698 Visual Basic Lecture 3 Prof. Mounir Mabsout Elsa Sulukdjian Walid El Asmar.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab10 Interacting with Data (Database Management)
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab3 Check Boxes,Option Buttons Frame Control Frame Control MsgBox, InputBox Functions Day7.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab5 ListBox Control Properties, Methods and Events.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 بسم الله الرحمن الرحيم Palestine Polytechnic University College of Administrative science and.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab2 Managing Controls.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Multiple Document Interface (MDI) application
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Programming with Microsoft Visual Basic 2012 Chapter 13: Working with Access Databases and LINQ.
CIS 338: Creating ActiveX Controls Dr. Ralph D. Westfall March, 2003.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 6 Multiple Forms.
Ch 11: Userforms CP212 Winter Topics Designing User Forms o Controls Setting Properties o Tab Order o Testing Writing Event Handlers o Userform_Initialize.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
MDI vs. SDI MDI – Multiple Document Interface SDI – Single Document Interface In an SDI application, each form acts independently of the others. A MDI.
BIM211 – Visual Programming Objects, Collections, and Events 1.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Lập trình trên Windows với Microsoft®.NET Giảng viên : Hồ Hoàn Kiếm.
APPX Runtime Futures Planned developments. APPX Runtime Futures  New Record Selection Method and User Interface for Query Setup  New Sort Order Specification.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 13 – Graphical User Interfaces Part 2 Outline.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
VB.NET Additional Topics
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
Visual Basic Programming Chapter Six Notes Repetition and the Do Statement ADDING ICONS TO YOUR FORM –It is possible to add an ______________ to your title.
© 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 15 Advanced Tables.
© 2006 Formic Wednesday 7th November 2007 Formic Scoop Training Mikey Desai.
Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab9 Control Array Print Method Printing VB Output.
Managing Controls Lab 2 2 All Rgihs ReservedIsmail M. Romi – PPu: IT DEpt.
3.9 to  Also refer to as Program  Contains set of instructions that tells the computer how to perform specific task.  Each line of code is referred.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
Dr Dat Tran - Week 2 Lecture Notes 1 Forms Programming Graphical User Interfaces PG (7110) University of Canberra School of Information Sciences & Engineering.
PowerBuilder Online Courses - by Prasad Bodepudi MDI Applications Single Document Interface Multiple Document Interface.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
HTML IMAGES. CONTENTS IMG Tag Alt Attribute Setting Width and Height Of An Image Summary Exercise.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
CECS 5020 Computers in Education Forms and Menus.
Compound Data Types Part13dbg. 2 Point A Point is a simple built-in struct that stores a pair of screen coordinates. Instantiate a Point: Point aPoint.
DateTime, Code Regions, and Multiple Form Applications Part13dbg.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Graphical User Interface
Multiple document interface (MDI)
SDI & MDI SDI -> Single Document Interface
Abstract Data Type.
Developing Forms and Subforms.
Working with Forms in Visual Basic
Standard Controls.
Event Driven Programming
Chapter 6 Multiform Projects
CIS 16 Application Development Programming with Visual Basic
Programming Lists of Data 靜宜大學資管系 楊子青
Chapter 13 Additional Topics in Visual Basic
Presentation transcript:

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 1 Lab8 Working with Forms Forms Collection Multiple Forms

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 2 Screen Object Properties: Screen.width : Specify the user screen width. Screen.height : Specify the user screen height. You can use these properties to specify the from location on the screen. Example: to center the form on the screen at the Run-Time: Form1.Left = (Screen.width - Form1.width) /2 Form1.Top = (Screen. Height - Form1. Height) /2

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 3 Form Collection The group of forms currently defined in the application. From Project Properties window you should specify the Startup From. Index Property: Each form in the form collection has an index starting with 0 for form1, 1 for form 2 ….

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 4 Referring to the form in the form collection 1- Using the form name Example : Form1.Text1.text = “ PPU” Form2.Caption = “StdRecord” 2- Using the index property Forms(index)!ControlName.Property = Value Example: Forms(0)!Text1.ForeColor = vbRed Form(1)!Caption = “StdRecord”

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 5 3- Using Me to refer to the active form. Me!ControlName.PropertyName= Value Count Property: Shows the number of open forms Forms.Count Example Print Forms.Count

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 6 Forms Events Load: Occurs during adding the form into main memory. UnLoad: Occurs during removing the from from main memory Activate: Occurs when the form becomes active. Deactivate: Occurs when another application or form becomes active. Resize: occurs when the user resizes the form.

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 7 Forms Methods Hide: Hides the form but it is still loaded into M.M. FormName.Hide Show: Shows the form at the interface. FormName.Show Print: Use to place text on the form. FormName.Print

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 8 Multiple Forms Single Document Interface (SDI) –An application that contains single data window. Multiple Document Interface (MDI): –An Application that contains multiple data windows. –This type of interface contains: Parent form that acts as a form container. One or more Child forms

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 9 Creating MDI Applications 1- From the project window => Add MDI form. 2- Add one or more forms. 3- Change the MDIChild property for each form to True. 4- Use Hide, Show properties in a suitable way for the child forms. When you run the program the out put should be one main form(container) that includes several forms inside.

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 10 Lab Training Using the MDI, design an interface to accept the student data in three forms as follow: Form1: Accepts the student personnel data, which is: Student name, Birth date, Birth place, Tawjihi major, Tawjihi average, Tawjihi year. Form2: Accept the academic data: Student college, Student major, Student level, Student supervisor. CONT….

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 11 Lab Training [CONT] Form3: Student current registration: Current academic year, current semester, Courses registered Form4:print the whole student information form Form1,form2 and form3 in labels

Copyright 2003 : Ismail M.Romi, PPU. All Rights Reserved 12 Lab8End