2a – Object Oriented Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.

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.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Project 8 Creating Style Sheets.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
٠ Orientation ٠ Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Introduction to Visual Basic What it is, and a simple program Mike Thelwall University of Wolverhampton, UK.
Visual Basic.net IDE. Integrated Development Environment.
1a – Getting Started Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
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.
1b – Inside Visual Studio Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Lab 8 – C# Programming Adding two numbers CSCI 6303 – Principles of I.T. Dr. Abraham Fall 2012.
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.
An Introduction to Visual Basic
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Assignment #1 Advanced Computer Programming.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Introduction to Windows Programming
Form Fill Software Data Structure Software developing company.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
CSD 340 (Blum)1 Using Visual Studio CSD 340 (Blum)2 Start/Microsoft Visual Studio 2005/Microsoft Visual Studio 2005.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Standard Grade Programming using VB 1 Programming Visual Basic.
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.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
CSC 157 (Blum)1 Hello World. CSC 157 (Blum)2 Start/Programs/Microsoft Visual Studio.NET 2003/Microsoft Visual Studio.NET 2003.
SEEM3460 Tutorial GUI in Java. Some Basic GUI Terms Component (Control in some languages) the basic GUI unit something visible something that user can.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
You should unzip and download the beginning programs.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
2d – CheckBox Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
2e – RadioButtons Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
CMPF114 Computer Literacy Chapter 3 The Visual Basic Environment 1.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
BBT 10 Visual Basic 03 Enrichment. Tip Before creating any files for your project, first create a new folder Save all of your files in the folder Pieces.
2c – Textboxes and Buttons Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Visual Basic A Quick Tutorial VB Review for ACS 367.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Using Forms and Form Elements In Visual Basic.NET.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Visual Studio 2010 Hello World CSC 230.
Chapter 1: An Introduction to Visual Basic 2015
Introduction to Computer CC111
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Visual studio 2010 SENG 403, Tutorial 2 SENG Winter 2011.
An Introduction to Visual Basic
Please use speaker notes for additional information!
Visual Studio 2010 Hello World CSC 230.
المحاضرة الأولى Lab(1) أ.ساره الأحمدي برمجة حاسب 2.
CIS16 Application Development Programming with Visual Basic
Building an Application in the Visual Basic .NET Environment
Web Page Design CIS 300.
2g – ComboBox Lingma Acheson CSCI N331 VB .NET Programming
Visual C# - GUI and controls - 1
2b – Labels and Pictures Lingma Acheson CSCI N331 VB .NET Programming
Introduction to Visual Basic 2010
4d – Program Design Lingma Acheson CSCI N331 VB .NET Programming
Presentation transcript:

2a – Object Oriented Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming

Object Oriented Focus on Objects Objects in the real world –Car –iPod nano –Button –Label –Picture –… Must give the details of an object to let people know about that particular object

Objects Can do something to the object –Car: drive, wash, reverse, park, … –iPod nano: play songs, delete songs, charge, … –Picture: display, frame, copy, … Defining an object means designing a blue print for the object, e.g. what properties should it have, what can it do? Can manufacture lots of objects from the same blue print, but with different properties

Objects in VB.NET Any language inside Visual Studio are object oriented. E.g. VB.NET objects: Labels, Textboxes, Buttons, Forms, Checkboxes… Download, unzip and open the “Inventory” project. Double clicking on the Form frame or clicking on the “View Code” icon in Solution Explorer will bring up the code window.

Define an Object An object in VB.NET is defined by creating a “Class” (the blue print) The objects in the Toolbox are already defined in Visual Studio, thus are ready to use. E.g. Textbox properties: –What is the name of the textbox? –What is the text shown in the textbox? –What is the size of the textbox? –What is the background color? –What is the font and color of the text inside the box? –…

Create an Object Instance Creating a new object means creating an instance of a particular Class (type). E.g. Creating three textboxes means creating three textbox objects of the Class “Textbox”. Once we create an object, we can manipulate the properties of the object and decide on the behavior of the object. E.g. the behavior of a button – once the user click on the button, it will calculate the total and display in the Total textbox. - a “button click” event.

Summary An object in VB.NET shares the same concept as a real world object. A Class means a blue print of the object. Creating an object means creating an instance based on the blue print. Once an object is created, we can change the properties of the object. We can also define the events.