December 13, 2015 1 December 13, 2015December 13, 2015December 13, 2015 Azusa, CA Sheldon X. Liang Ph. D. Computer Science at APU Azusa Pacific University,

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

An Introduction to Visual Basic Terms & Concepts.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
April 30, April 30, 2015April 30, 2015April 30, 2015 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific University,
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
May 1, CS2126 Application Programming: An Actual Progress Sheldon X. Liang Ph. D. Montana Tech of UM, Butte MT 59701, Tel: Department.
May 2, May 2, 2015May 2, 2015May 2, 2015 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific University, Azusa, CA.
2-May-15 GUI Design. 2 HMI design There are entire college courses taught on HMI (Human-Machine Interface) design This is just a very brief presentation.
May 3, May 3, 2015May 3, 2015May 3, 2015 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific University, Azusa, CA.
靜宜大學資管系 楊子青 1 Programming Your App’s Memory 靜宜大學資管系 楊子青
May 20, May 20, 2015May 20, 2015May 20, 2015 Azusa, CA Sheldon X. Liang Ph. D. Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department.
Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.
CVEV 118/698 Visual Basic Lecture 1 Prof. Mounir Mabsout Expert 1: Elsa Sulukdjian Expert 2: Walid El Asmar.
VB Code Statements 3 types of VB statement The Remark statement, known as comments, are used for project documentation only Begin with an apostrophe Not.
To type the VB code behind the command button (named cmdPush), Double-Click on the Push Me (caption) command button As a result the Visual Basic Code Window.
Introduction to Visual Basic Chulantha Kulasekere.
August 13, August 13, 2015August 13, 2015August 13, 2015 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific University,
Adding Controls to User Forms. Adding Controls A user form isn’t much use without some controls We’re going to add controls and write code for them Note.
August 19, August 19, 2015August 19, 2015August 19, 2015 Azusa, CA Sheldon X. Liang Ph. D. CS 470 Software Engineering I Azusa Pacific University,
August 22, August 22, 2015August 22, 2015August 22, 2015 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific University,
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.
Not in Text CP212 Winter No VBA Required “Regular” Programming traditional programming is sequential in nature o one command executed after another.
CS 2340: Programming in VB Instructor: Dr. Qi Yang Office: 213 Ullrich Phone: YangQ 1.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
CS 2340 Programming in VB.NET Instructor: Dr. Qi Yang Office: 213 Ullrich Phone: YangQ 1.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
An Introduction to Visual Basic
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Multiple Forms, Container Controls, AddHandler This presentation is based on the Forms and ContainerControls VB Projects 1.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
The Effectiveness of Web Components Presented By: Geoffrey Zimmerman Computer Science Capstone Fall 2004/Spring 2005 Mentor: Dr. C. David Shaffer.
06/10/ Working with Data. 206/10/2015 Learning Objectives Explain the circumstances when the following might be useful: Disabling buttons and.
Chapter 8: Writing Graphical User Interfaces Visual Basic.NET Programming: From Problem Analysis to Program Design.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
GUI Widgets Jeff Offutt SWE 432 Design and Implementation of Software for the Web.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
University of Sunderland CIF 102/FIF102 Fundamentals of DatabasesUnit 15 Programming in Microsoft Access using VBA Using VBA to add functionality.
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
Button and Textbox. Input  Input objects are used to obtain input from the user viewing the webpage. They allow the user to interact with the Web. 
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Game Maker – Getting Started What is Game Maker?.
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
What is Visual Basic.NET? 110 B-1 e.g. a word processor doesn’t do anything until the user clicks on a button, types text... A programming language that.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
November 22, November 22, 2015November 22, 2015November 22, 2015 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific.
MS Visual Basic 6 Walter Milner. VB 6 0 Introduction –background to VB, A hello World program 1 Core language 1 –Projects, data types, variables, forms,
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
1 Advanced Computer Programming Lab Calculator Project.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Programming with Microsoft Visual Basic th Edition
1 CS 106 Computing Fundamentals II Chapter 210 “Adding Controls to User Forms” Herbert G. Mayer, PSU CS Status 7/4/2013 Initial content copied verbatim.
January 27, January 27, 2016January 27, 2016January 27, 2016 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific University,
Application software- programs that let you do things What are some computer programs that you or your parents use on the computer?
Calculator Program Explained by Arafa Hamed. First Designing The Interface Ask yourself how many places are there that will be used to input numbers?
February 19, February 19, 2016February 19, 2016February 19, 2016 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific.
February 27, February 27, 2016February 27, 2016February 27, 2016 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific.
Visual Basic A Quick Tutorial VB Review for ACS 367.
March 19, March 19, 2016March 19, 2016March 19, 2016 Azusa, CA Sheldon X. Liang Ph. D. Software Engineering in CS at APU Azusa Pacific University,
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Chapter 3 Vocab By: Christopher Schaffer 1B. Convert Class  The Convert class contains methods that return the result of converting a value to a specified.
Introduction to Computer CC111
An Introduction to Visual Basic
VISUAL BASIC.
Visual Basic Programming Chapter Four Notes Working with Variables, Constants, Data Types, and Expressions GROUPBOX CONTROL The _____________________________________.
4d – Program Design Lingma Acheson CSCI N331 VB .NET Programming
Presentation transcript:

December 13, December 13, 2015December 13, 2015December 13, 2015 Azusa, CA Sheldon X. Liang Ph. D. Computer Science at APU Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science, CS 363 Web Programming

December 13, A silent night … … Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13, A silent night … … Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13, In the beginning, our project is formless … We’re planning GUI form first Then we deign interface form, plan properties and Basic code … Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13, After we got GUI form, programming … Now we define interface, set properties and write Basic code … We’re programming Project Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13, What’s needed to bridge the gap between… Planning Programming VISION is our Golden Gate Bridge Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Form Planning vs. Programming  Blank-filling under Framework  Declaration vs. Scope & Lifetime  Incremental Building Blocks  Menu and Dialog Boxes (sub-form)  Self-defined Procedures (Function) Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science, CS363 Web Programming Event-Driven VB

December 13,  Project Planning vs. Programming  Two kinds of structures (seq / sel)  Four kinds of controls  Three kinds of data  One kernel in mind: you do less but re-use Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Controller controls  Four kinds of controls appearing on Forms  Mute controls  Controlled controls  Contributor controls They will do nothing dynamically, just display information. You do not need to consider them anymore in programming. They not only do a lot of things, but also stimulate other controls to react. You need to give careful consideration in coding They are passively affected by other controls and provide main showcase for calculation. You need to put data for display They are happy to join others’ calculation by contributing their data. You need to pick data from them for calculation Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Controller  Four kinds of controls appearing on Forms  Mute  Controlled  Contributor Group Box and Most Labels It only needs its “.Text” property, never needs a ”.Name” property, that is to say, you even do not need to give a name to it. In your code, you won’t do anything. Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Four kinds of controls appearing on Forms Most Buttons It needs not only its “.Text” property, but also a serious “.Name” property, this is because some auto-generated code is strongly tied up with it. Double-click will start your programming.    Mute  Controlled  Contributor  Controller Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Four kinds of controls appearing on Forms  Double Click to start Your serious name should be: orderBtn  Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Four kinds of controls appearing on Forms Some Labels and TextBoxes It usually has an empty “.Text” property. It needs a serious “.Name” property, and a variable for storing datum. Finally it is required to put datum back. i.e., totalLabel (name), totalDecimal (variable) totalLable.Text = totalDecimal.toString()  Mute  Controlled  Contributor  Controller Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Four kinds of controls appearing on Forms Text Box, Radio and Check Box It usually has an companied “.Text” property. It needs a serious “.Name” property, variable (or constant) related to it. Generally it just contribute something for calculation, i.e., quantityTextBox (name), quantityInteger (variable) quantityInteger = Integer.Parse (quantityTextBox.Text)  Mute  Controlled  Contributor  Controller Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Inner Identifier .Name property  Three kinds of data  Appearance .Text property  Variable/Const  store data at run time This property is for users to look at while using the form, so brief, exact, and precise TEXT will be good for them. i.e., Order Coffee, Clear, Exit This property is for designers to identify controls while design form and programming, so easy to remember will be great. i.e., quantityTextBox (or quantityTB), totalLabel (or totalLB) This is for data storage in calculation, pickup and conversion, so data type postfix to the variable will be good for programmers. i.e., quantityInteger, totalDecimal, taxDecimal, TAX_RATE_Decimal Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Inner Identifier  Three kinds of data  Appearance  Variable/Const All information appearing on the form Their purpose appearing on the form is to prompt users to know the meaning, so that they are guided to further operation. i.e.,.Text properties  Bill Form, Coffee Selection, Cappuccino, Espresso, Latte, Iced Latte, Iced Cappuccino, Your Order, Quantity, takeout, Discount15%, Oder, Total Tax, Discount, Total Due, Enjoy yourself (Clear) Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Inner Identifier  Three kinds of data  Appearance  Variable/Const Every control has an inner identifier Their purpose is to let form designer and programmer use their various properties through the.Name, but for mute controls, just take the default one. cappuccinoRadioButton espressoRadioButton quantityTextBox orderButton quantityTextBox Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Project Planning vs. Programming  Inner Identifier  Three kinds of data  Appearance  Variable/Const Contributor & Controlled controls need variables to hold data Their purpose is to let programmer hold data for calculation, conversion, and other use quantityInteger totalDecimal taxDecimal discountDecimal totalDueDecimal Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13,  Form Planning vs. Programming  Blank-filling under Framework  Declaration vs. Scope & Lifetime  Incremental Building Blocks  Menu and Dialog Boxes (sub-form)  Self-defined Procedures (Function) Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science, CS363 Web Programming Event-Driven VB

December 13,  Blank-filling under framework  A Perfect VISION Form Math description Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

 Blank-filling under framework  A Perfect VISION Form Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming

December 13,  Form Planning vs. Programming  Blank-filling under Framework  Incremental Building Blocks  Menu and Dialog Boxes (sub-form)  Self-defined Procedures (Function)  Declaration vs. Scope & Lifetime CS363 Web Programming Event-Driven VB Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

 Incremental Building Blocks  Simple Form and Brief Operation Simple Form  Menu Window and Integrated Forms  Father Window and Common Dialog Box Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

 Declaration vs. Scope & Lifetime  Variable Scope  accessible privilege  Variable lifetime  live an actual life Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,

December 13, That is all Thank you very much! Questions? Computer Science & Software Engineering CS363 Web Programming: Event-Driven Programming Azusa Pacific University, Azusa, CA 91702, Tel: (800) Department of Computer Science,