Looking at our “Getting Started” application

Slides:



Advertisements
Similar presentations
Creating Data Entry Screens in Epi Info
Advertisements

Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
C# Programming: From Problem Analysis to Program Design1 Introduction to Windows Programming C# Programming: From Problem Analysis to Program Design 3.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 8: More About OOP and GUIs.
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
1 Workshop 4 (B): Visual Basic Test Project Mahidol University June 13, 2008 Paul Evenson University of Delaware Bartol Research Institute.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Chapter 8: Writing Graphical User Interfaces
COS240 O-O Languages AUBG, COS dept Lecture 33 Title: C# vs. Java (GUI Programming) Reference: COS240 Syllabus.
® IBM Software Group © 2006 IBM Corporation “Essential” HTML Tags and Page Development Techniques This Learning Module describes the standard HTML tags.
Sample Application Multi Layered Architecture (n-tier): –Graphical User Interface (GUI): Forms, components, controls The Visual Designer in Visual Studio.
Introduction to Windows Programming
PHP Form Introduction Getting User Information Text Input.
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.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
Forms and Controls Part 3 dbg --- Naming conventions, Button, Event handlers, Label.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Forms and Controls Part 3 dbg --- Naming conventions, Button, Event handlers, Label.
Using CSS to Create Some Style Module 5: Beyond the Basics with Expression Web LESSON 5.
PATTERN RECOGNITION LAB 8 TA : Nouf Al-Harbi::
Using a set-up file to read ASCII data into Stata
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Chapter 1: An Introduction to Visual Basic .NET
Introduction to Object-oriented Programming
ASP.NET Forms.
Chapter 2: The Visual Studio .NET Development Environment
Steps to Build Frame Window Recipe Application
C# Programming: From Problem Analysis to Program Design
Developer 2000 CSE 4504/6504 Lab.
Chapter 8: More About OOP and GUIs
Chapter Topics 15.1 Graphical User Interfaces
Chapter 8: Writing Graphical User Interfaces
An Introduction to Computers and Visual Basic
Eclipse Navigation & Usage.
Using a set-up file to read ASCII data into SPSS
Visual programming Chapter 1: Introduction
Reference: COS240 Syllabus
Visual studio 2010 SENG 403, Tutorial 2 SENG Winter 2011.
Using GUI Objects and the Visual Studio IDE
MFC Dialog Application
C# Programming: From Problem Analysis to Program Design
Customization
Lecturer: Mukhtar Mohamed Ali “Hakaale”
C# Programming: From Problem Analysis to Program Design
Chapter 6 Multiform Projects
MODULE 7 Microsoft Access 2010
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
Introduction to TouchDevelop
Understanding the Visual IDE
Welcome to E-Prime E-Prime refers to the Experimenter’s Prime (best) development studio for the creation of computerized behavioral research. E-Prime is.
CIS16 Application Development Programming with Visual Basic
Chapter 3 – A Guided Tour Through Arena
Visual programming Chapter 2: Events and Event Handling
Lecture Set 11 Creating and Using Classes
Tonga Institute of Higher Education
Using Templates and Library Items
Chapter 15: GUI Applications & Event-Driven Programming
How to organize and document your classes
Guidelines for Microsoft® Office 2013
Drupal user guide Evashni Jansen Web Office.
GUI Programming in Visual Studio .NET
Steps to Build Frame Window Recipe Application
Unit J: Creating a Database
Custom Forms with VBA in Excel In-Class Exercise #11
Presentation transcript:

Looking at our “Getting Started” application Windows Form Tour Looking at our “Getting Started” application

Objectives Recreate some Module 0 components Picture Data entry box Static text Look at how it has generated the code Make a modification to establish default values for the form

Project Selection

Main IDE Window

Program Code: Main As always, Main() is the entry point for our application…

Form Code: Editable Area Comments: partial is used to signify that designer-generated code is in another file Our form inherits from the .NET Form class Form1() is our default constructor. If we rename the form, it will automatically be renamed InitializeComponent(), generated by the designer, is where form elements are created.

Add some elements…

Designer Created Members Comments: Yellow highlight show member variables created for our three form elements Green highlight shows function where we build our form

Designer Generated Constructors Comments: Code generated by the designer should not be edited. Is located in Form.Designer.cs A lot of the code generated involves attaching the blank form to the application—in general, you won’t need to worry about it Highlighted areas show the three components—the picture, the label and the text box—being constructed. Observe how they look like any other constructors (System.Windows.Forms. are nested namespaces) Bottom two lines are designed to keep elements from displaying and moving around while they are being initialized

Label and Edit-Box Initialization Comments: These members are all values that can be set in the properties box…

Picture Box Initialization Comments: The resources area is a location (in the executable file you are creating) where images, cursors and certain types of text are stored. This increases speed and reduces the need to include separate files when creating an installation (Setup.exe) program. Everything else is just an editable property

Form Initialization Comments: Yellow highlight shows our controls being added to the window. This is necessary so events (e.g., mouse clicks) can be handled by the form, and so they can be removed when the form is closed. 6F, 13F are 4-byte real numbers (as opposed to 8-byte double values) Green highlights tell the form it can resume drawing.

Adding default Edit-box Value Comments: Creating a member variable was not necessary here Change control properties only after InitializeComponent(), where they are constructed

Parting words… When you work in the designer, you are simply generating code—nothing else! Usually, you won’t have to worry about designer-generated code. It just works! A little understanding of the designer helps you figure our where customizations go When you create more complex interfaces, you may start adding controls while the program is running. Use the designer-generated code as your guide!