Visual Programming Fall 2012 – FUUAST Topic: Development environment.

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

 2007 Dr. Natheer Khasawneh. Chapter 13. Graphical User Interface Concepts: Part 1.
Microsoft.NET Fundamentals. Introduction Name Company affiliation Title/function Job responsibility Database & Developer experience Your expectations.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
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.
Advanced Object-Oriented Programming Features
7M701 1 Class Diagram advanced concepts. 7M701 2 Characteristics of Object Oriented Design (OOD) objectData and operations (functions) are combined 
Evan Korth New York University Computer Science I Classes and Objects Professor: Evan Korth New York University.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Abstract Data Types and Encapsulation Concepts
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
1 Review: Two Programming Paradigms Structural (Procedural) Object-Oriented PROGRAM PROGRAM FUNCTION OBJECT Operations Data OBJECT Operations Data OBJECT.
Introduction to Visual Basic Chulantha Kulasekere.
Programing App Inventor. Variable Declaration App Inventor: Declare Variables using the “Define Variable As” Block – Find the Blocks Editor (top-left),
DT265-2 Object Oriented Software Development 2 Lecture 3 : Windows Programming Lecturer Pat Browne
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Getting Started Example ICS2O curriculum
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Object Based Programming. Summary Slide  Instantiating An Object  Encapsulation  Inheritance  Polymorphism –Overriding Methods –Overloading vs. Overriding.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
A First Program Using C#
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Microsoft Visual Basic 2005: Reloaded Second Edition
Tutorial 11 Using and Writing Visual Basic for Applications Code
An Introduction to Visual Basic
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
Teacher: Ms. Olifer MICROSOFT VISUAL STUDIO 2010: PROPERTIES OF WINDOWS FORM OBJECT.
Introduction to the Visual Studio.NET IDE (LAB 1 )
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
Chapter 6 OOP: Creating Object-Oriented Programs Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 24P. 1Winter Quarter C++ Lecture 24.
Tuc Goodwin  Object and Component-Oriented Programming  Classes in C#  Scope and Accessibility  Methods and Properties  Nested.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 13 Introduction to Classes.
Copyright 2004 Scott/Jones Publishing Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 7 Structured Data and Classes.
C# and.NET programming – introduction 1 Introduction A course in C# and.NET programming Associated book:
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
C++ Programming Basic Learning Prepared By The Smartpath Information systems
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
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.
Chapter 6 Introduction to Defining Classes. Objectives: Design and implement a simple class from user requirements. Organize a program in terms of a view.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
1.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
Introduction to Object-Oriented Programming Lesson 2.
1 Class 1 Lecture Topic Concepts, Definitions and Examples.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Object-Oriented Programming (OOP) What we did was: (Procedural Programming) a logical procedure that takes input data, processes it, and produces output.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Object Oriented Programming Session # 03.  Abstraction: Process of forming of general and relevant information from a complex scenarios.  Encapsulation:
1 Introduction to Object Oriented Programming Chapter 10.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Classes (Part 1) Lecture 3
Chapter 1: An Introduction to Visual Basic 2015
Understand the Fundamentals of Classes
Review: Two Programming Paradigms
Object Oriented Programming
Social Media And Global Computing Introduction to Visual Studio
CIS16 Application Development Programming with Visual Basic
Tonga Institute of Higher Education
Presentation transcript:

Visual Programming Fall 2012 – FUUAST Topic: Development environment

What will we do today We will create windows applications Introduction of.NET IDE Namespace, Class, Object,Function/Method, Access modifiers,Properties, Events. Create first windows Application “Hello Wold”

Development environment create windows applications

Development environment create windows applications

Development environment Design environment: Toolbar messages Properties/events window Code editor Form Solution explorer Menus

Development environment The Form – Most important - place controls – the UI. Display by clicking Form1.cs [Design] tab Form Textbox Button Label Listbox

Development environment Namespace -The namespace keyword is used to declare a scope. This namespace scope lets you organize code and gives you a way to create globally unique types. namespace BS5 { public class Student { public void Get_Name() { } } public class Teacher { public void Get_Name() { } } -Whether or not you explicitly declare a namespace in a C# source file, the compiler adds a default namespace.

Development environment Class -The class is the fundamental building block of code when creating object- oriented software. -A class describes in abstract all of the characteristics and behavior of a type of object. public class Student { public void Get_Name() { } } Object -Objects are instances of a class. -the class is just a definition. When the object is physically created, space for that object is allocated in RAM. It is possible to have multiple objects created from one class. Student Std = new Student();

Development environment Function/Method -Classes contain methods that solve the problems for the program. So a methods is a kind of building blocks that solve a small problem. public class Student { public void Get_Name() { } public void Calculate_Age_Number() { } }

Development environment Access Modifiers Access modifiers are an integral part of object-oriented programming. They support the concept of encapsulation, which promotes the idea of hiding functionality. Access modifiers allow you to define who does or doesn't have access to certain features. ModifierDescription publicThere are no restrictions on accessing public members. privateAccess is limited to within the class definition. This is the default access modifier type if none is formally specified protectedAccess is limited to within the class definition and any class that inherits from the class internalAccess is limited exclusively to classes defined within the current project assembly protected internalAccess is limited to the current assembly and types derived from the containing class. All members in current project and all members in derived class can access the variables.

Development environment Events -Event is a method that contains the code that gets executed in response to a specific event that occurs in an application. Event

Development environment Properties -A property is a member that provides a flexible mechanism to read, write, or compute the value of a private field. Properties can be used as if they are public data members. class TimePeriod { private double seconds; public double Hours { get { return seconds / 3600; } set { seconds = value * 3600; } } class Program { static void Main() { TimePeriod t = new TimePeriod(); // Assigning the Hours property causes the 'set' accessor to be called. t.Hours = 24; // Evaluating the Hours property causes the 'get' accessor to be called. System.Console.WriteLine("Time in hours: " + t.Hours); } // Output: Time in hours: 24

Development environment Properties Size (height and width) Description of property

windows Application “Hello World” Your First C# Program Run C#, start a new Project, > Windows Application and call it ‘Hello world’ Save the project. Select File>Save All. Display the form (click form1.cs[Design] tab). Add button (drag and drop) from Toolbox to form

windows Application “Hello World” Change the button’s text display (a property). Display the properties window, Scroll to the Text property, type in ‘Hello world’

windows Application “Hello World” Place TextBox and label to form Change label’s caption property to ‘My First C# Program’. Form looks like:

windows Application “Hello World” Run program – not much happens. Close it. Double-click button to add code for button click Add code: textBox1.Text="Hello world"; Note: Use dot notation to access property C# is case sensitive.