Lecture 1 Introduction Phil Smith

Similar documents
Using Visual Basic Studio 2008

Microsoft Visual Basic 2005: Reloaded

Chapter 12: Using Controls

Computer Science 110. NOTES: module 8

Chapter 2 Visual Basic Interface

Program and Graphical User Interface Design

Introduction to the Visual Studio 2005

2 USING VB.NET TO CREATE A FIRST SOLUTION

Getting started 7. Setting properties 23

Chapter 12: Using Controls

REVIEW OF CHAPTER 1 1

B.V Patel Institute of Business Management, Computer & Information Technology

The original of this document was developed by the Microsoft special interest group. We made some addons.

Full file at Programming in Visual Basic 2010

Getting started 7. Setting properties 23

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)

LESSON B. The Toolbox Window

EPSON RC+ 7.0 Option. GUI Builder 7.0 EM145A2719F. Rev. 2

Dive Into Visual C# 2010 Express

Full file at

B.V Patel Institute of BMC & IT, UTU

Programming in C# Project 1:

Introductionto the Visual Basic Express 2008 IDE

CST242 Windows Forms with C# Page 1

Unit-1. Components of.net Framework. 1. Introduction to.net Framework

Dive Into Visual C# 2008 Express

Chapter 2 Visual Basic, Controls, and Events. 2.1 An Introduction to Visual Basic 2.2 Visual Basic Controls 2.3 Visual Basic Events

Visual Basic.NET. 1. Which language is not a true object-oriented programming language?

Getting started 7. Storing values 21. Creating variables 22 Reading input 24 Employing arrays 26 Casting data types 28 Fixing constants 30 Summary 32

Contents. Using Interpreters... 5 Using Compilers... 5 Program Development Life Cycle... 6

EEE-425 Programming Languages (2013) 1

1. What is the definition of a problem? 2. How to solve problems? 3. What is meant by Algorithm? 4. What is a Program testing? 5. What is Flowchart?

LESSON A. The Splash Screen Application

Overview Describe the structure of a Windows Forms application Introduce deployment over networks

EEE-425 Programming Languages (2013) 1

Controls. By the end of this chapter, student will be able to:

Standardized Coding Practices

Using event-driven programming Installing Visual Basic 2015 Touring the Visual Basic 2015 integrated development environment

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events

PROGRAMMING LANGUAGE 2 (SPM3112) NOOR AZEAN ATAN MULTIMEDIA EDUCATIONAL DEPARTMENT UNIVERSITI TEKNOLOGI MALAYSIA

Sedao Ltd. QuickChange PROject. User Manual for QuickChange PROject version 2.1.5

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

Sparqube Picture Column

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)

CIS 3260 Intro. to Programming with C#

Philadelphia University Faculty of Information Technology. Visual Programming

Intelli-Signage Signage Designer Software

1 Introduction to MARS

Unit 3. Lesson Designing User Interface-2. TreeView Control. TreeView Contol

Team Developer 6.1. Configure the color-coding in the Tools Preferences dialog under the Outline tab.

Tutorial 3 - Welcome Application

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction

Visual C# Program: Simple Game 3

IT3101 -Rapid Application Development Second Year- First Semester. Practical 01. Visual Basic.NET Environment.

COPYRIGHTED MATERIAL. Welcome to Visual Basic 2005

Use Default Form Instances

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0

Introduction to Programming. Writing Programs Syntax, Logic and Run-time Errors

Creating an MFC Project in Visual Studio 2012

Interface Design in C#

Microsoft Visual C# 2005: Developing Applications Table of Contents

3. The first step in the planning phase of a programming solution is to sketch the user interface.

Chapter 1. Introduction to Programming and Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications

10/18/2010 ' ( )* +, ('')* +, !" #$ % !""#$

DateTimePicker Control

1Welcome to Visual Basic 2010

Visual Basic. The Integrated Development Environment. Menu Bar

Web Service Input Actions

Visual C# Program: Resistor Sizing Calculator

Quark XML Author 2015 October Update with Business Documents

COPYRIGHTED MATERIAL. Visual Basic: The Language. Part 1

SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE. Computer Programmer/Analyst.

SYLLABUS B.Com (Computer) VI SEM Subject Visual Basic Unit I

Visual Basic Program Coding STEP 2

Beginning Silverlight 5 in C #

Skill Area 336 Explain Essential Programming Concept. Programming Language 2 (PL2)

Subject to Change Drawing Application 1 Introducing Computers, the Internet and C#

Introduction to the Visual Studio.NET Integrated Development Environment IDE. CSC 211 Intermediate Programming

In the first class, you'll learn how to create a simple single-view app, following a 3-step process:

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

Programming. C# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies

OpenDrive Wordpress Plugin Guide

UNIT 1. Introduction to Microsoft.NET framework and Basics of VB.Net

You can call the project anything you like I will be calling this one project slide show.

This section provides an overview of the features available within the Standard, Align, and Text Toolbars.

Adobe InDesign Notes. Adobe InDesign CS3

Microsoft Visual Basic 2005 CHAPTER 6. Loop Structures

The figure below shows the Dreamweaver Interface.

Introduction VBA for AutoCAD (Mini Guide)

Visual Basic. murach s. (Chapter 2) TRAINING & REFERENCE. Mike Murach & Associates, Inc.

3 Welcome Application 41 Introduction to Visual Programming

User Manual Version 1.1 January 2015

Level 2/3 Award/ Certificate/Diplomas in ICT Systems and Principles ( /13)

AVS4YOU Programs Help

M. K. Institute Of Computer Studies, Bharuch SYBCA SEM IV VB.NET (Question Bank)

Variable Scope The Main() Function Struct Functions Overloading Functions Using Delegates Chapter 7: Debugging and Error Handling Debugging in Visual

Chapter 3. Fundamentals of Programming in Visual Basic

OCTAVO An Object Oriented GUI Framework

Transcription:

2014-2015

Lecture 1 Introduction Phil Smith

Learning Outcomes LO1 Understand the principles of object oriented programming LO2 Be able to design object oriented programming solutions LO3 Be able to implement object oriented programming solutions LO4 Be able to test and document object oriented programming solutions.

Learning Outcomes LO1 LO1 Understand the principles of object oriented programming 1.1 discuss the principles, characteristics and features of objected oriented programming.

Learning Outcomes LO1 LO1 Understand the principles of object oriented programming 1.1 discuss the principles, characteristics and features of objected oriented programming.

Assignments 3 summative assignments Each has a formative feedback before submission. The submission MUST be your OWN work, MUST be spelt correctly and MUST use good grammar and punctuation. All diagrams must have captions and be referred to in your narrative. Harvard referencing must also be used (see wiki).

Structure 1.5 hours of lectures approx. 1.5 hour of tutorial/lab (approx.), Lab work will mostly be in small groups. Additional independent study.

Resources Lectures. Books (in lab). Books in LRC. Internet, you have internet access. Periodicals etc.

Environment Programming Language: C# Use Visual studio 201x? Why? 1. Popular language. 2. Designed for OOP. 3. Built with OOP. 4. Strongly typed (more stable code?)

Environment this unit is not about the language, this is just syntax. It is about (learning outcomes again) OOP. You already have programming knowledge. We will have to get used to C# syntax. C# is case sensitive and explicit in its nature (by design). C# is built upon the Microsoft.net framework.

.NET Framework The.NET Framework is A software development environment A runtime engine for Managed Code A platform designed for Internet- Distributed software The.NET Framework is an exciting computing platform

.NET Framework Microsoft s vision to introduce an improved programming experience Installed on Windows Operating Systems A software development environment A runtime engine for Managed Code

Architecture Common Language Infrastructure (CLI).NET libraries are provided as a language-neutral platform Common Language Runtime A runtime provides services from the operating system and hardware The CLR Provides: Memory management Thread management Exception handling Garbage collection Security The CLR allows users to ignore specifics for the CPU and get on with programming the task

.NET Platform Architecture

C# Language Why C# ( more) Uses.NET framework Works with common editors Intuitive syntax Powerful features Close syntax to Java

Visual Studio Development tool for the programmer Includes Graphical User Interface (GUI) code editor supporting IntelliSense Syntax building GUI applications web designer class designer database schema designer

Visual Studio Cost Download free version Search for Visual Studio Express 2014 Download C# version 30 days free trial register to continue usage Or make use of DreamSpark Version

Properties Load Visual Studio Menus Toolbox Code Area Solution Explorer Messages Area

Create a Simple Project File -> New Give the project a name

Solution Explorer Displays all projects in solution Shows all files in project Files organisation Project references

Resources Files.resx Efficient and secure method of storing objects within application Images (PNG, BMP, GIF, JPEG, TIFF) Audio Text Strings Icons Access resources programmatically

Window Docking Floating Dockable Tabbed Document Auto hide Hide

Project Properties

Building Projects Build project (F6) Complies code for platform Creates executable file File locations EXE file

Visual Studio Help

Forms A Form is for the creation of a Graphical User Interface Provides user interaction with the code Positioning of user controls A program can have one or more forms Forms can be various sizes

Form Controls and Properties Form Controls include Buttons Textboxes Radio buttons Check boxes Labels Sliders Tabs List boxes

Form Controls and Properties Properties All controls have a unique name for identification within the code Control size X & Y Colour Screen position All controls don t necessarily have the same properties

Properties Define the control s properties Writes code for you

Form Properties Name String AcceptButton String CancelButton - String Icon Windows icon BackColor - RGB Enabled True/False Font Style, Size, Colour Location X,Y MaximizeSize X/Y MinimizeSize X/Y Size X,Y WindowState Maximize, Minimize, Normal

Button Properties Name String Text - String BackColor - RGB DialogResult OK, Cancel, Abort, Retry, Yes, No Enabled True/False Font Style, Size, Colour Location X,Y Size X,Y TextAlign Left, Right, Centre, Top, Middle, Bottom TabIndex int Visable True/False

Lab 01 Do project 1 of Lab01.

Add Controls Add the following controls to your lab01 project. Label Button ListBox TextBox PictureBox Change some properties

Aligning Controls Use this control to align controls on a form In most cases you will need to select two or more controls to align Use the shift key to select multiple controls Use this for lab01 project 2 But not yet

Coding in C# and Visual Studio Tutor Demo IntelliSense Microsoft's implementation of auto-completion Code is separated into several files AssemblyInfo.cs Assembly information Author Company Version/build Form.Designer.cs - Form controls Program.cs application code

Coding in C# and Visual Studio Language syntax When declaring variables the type is entered first! String varname; // this is a string variable Statements must be complete with a semicolon;

Coding in C# and Visual Studio C# is a strongly typed language. C# is very explicit in its syntax. A bit like marmite, you either hate or love this. C# produces very stable runtimes as a result. This is by design.

Control Naming Controls using in your programs require appropriate naming This aids the developer by: Providing a description of the control Reduces naming conflicts Use a naming convention Modified Hungarian Notation

Simple Naming Conventions [prefixes][basename] Prefixes - A Prefix is created to mnemonically represent the word it abbreviates, such as "frm" for "form" Basename - The base name is the your own name for the particular object btnok txttitle lstnames

Modified Hungarian Notation Control Label ListBox MainMenu RadioButton TextBox Timer CheckBox ComboBox Button Form GroupBox PictureBox Horizontal scroll bar lbl lst mnu rad txt tmr chk cbo btn frm grp pic hsb Prefix

Lab01 Now do Lab01 Project 2

Summary What is the.net Framework? Introduction to C# Visual Studio Forms Controls Naming conventions

Next Time C# Language fundamentals Beginning OOP concepts