Overview-An Overview of Visual Basic.NET1 An Overview of Visual Basic.NET.

Slides:



Advertisements
Similar presentations
Introduction to Programming and Visual Basic 2005
Advertisements

Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 STARTING OUT WITH Visual Basic 2008 FOURTH EDITION Tony Gaddis.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter Introduction to Programming and Visual Basic
Overview1 History of Programming Languages n Machine languages n Assembly languages n High-level languages – Procedure-oriented – Object-oriented/Event-driven.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
Chapter 1 Introduction to Programming and Visual Basic 2005 Lecture Notes Chapter 1 (CSIT 105)
Chapter Introduction to Programming and Visual Basic
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Introduction to Programming and Visual Basic
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 1 Introduction to Programming and Visual Basic.
CSCI Programming with Visual Basic Instructor: Bindra Shrestha University of Houston – Clear Lake.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter Introduction to Programming and Visual Basic
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Introduction 01_intro.ppt
A First Program Using C#
Overview-An Overview of Visual Basic.NET1 An Overview of Visual Basic.NET.
Visual Basic Chapter 1 Mr. Wangler.
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
Introduction to VB.NET Tonga Institute of Higher Education.
Microsoft Visual Basic 2005: Reloaded Second Edition
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.
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
Problem Create a Windows-based application that will calculate the Gross Pay earned for a worker, given the number of hours worked and hourly pay rate.
CIS 115 Lecture 4.  Create a Windows-based application that will calculate the Gross Pay earned for a worker, given the number of hours worked and hourly.
PROBLEM SOLVING The first step in writing instructions to carry out a task is to determine what the output should be (What should the task produce?)
Intro to Programming and Visual Basic .NET
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Visual Basic Week 2
Introduction to the Visual Studio.NET IDE (LAB 1 )
Visual C++ Programming: Concepts and Projects
Starting Out with Visual Basic.NET 2 nd Edition Chapter 1 Introduction to Programming and Visual Basic.NET.
Copyright © 2014 Pearson Education, Inc. Chapter 1 Introduction to Programming and Visual Basic.
COPYRIGHT 2007: Dr. David Scanlan, CSUS 010-HELLO WORLD VB-Express.ppt Purpose: A "Hello World" program's purpose is to eliminate as much complexity as.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Managing Controls Lab 2 2 All Rgihs ReservedIsmail M. Romi – PPu: IT DEpt.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Microsoft Visual Studio 2010 Teacher: Ms. Olifer.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Copyright © 2011 Pearson Addison-Wesley What is a Program Made Of? Keywords (Reserved Words) – Words with special meaning that make up a high-level programming.
1.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 1 Introduction to Programming and Visual Basic.
Overview.ppt Overview-An Overview of Visual Basic.NET An Overview of Visual Basic.NET.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
Steps for Developing a Visual C# 2010 Application MIT By: S. Sabraz Nawaz.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Chapter 1: Introduction to Computers and Programming.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Chapter 1 Introduction to Programming and Visual Basic.
Visual Basic.NET Windows Programming
Introduction to Programming and Visual Basic .NET
Introduction to Programming and Visual Basic
Chapter 1. Introduction to Computers and Programming
Introduction to Programming and Visual Basic
CIS16 Application Development Programming with Visual Basic
Chapter Two Visual Basic.Net.
Presentation transcript:

Overview-An Overview of Visual Basic.NET1 An Overview of Visual Basic.NET

Overview-An Overview of Visual Basic.NET2 Methods of Programming  Procedural Languages  Constructed as a set of procedures (operational, functional units)  Often used in text-based environments  Object-Oriented  Constructed as a set of objects  Objects have data elements (i.e. properties) and perform actions (i.e. methods)

Overview-An Overview of Visual Basic.NET3 Object-Oriented/Event-Driven Languages  Simplifies the task of programming GUI applications.  In object-oriented/event-driven languages, the emphasis of a program is on the objects included in the user interface (such as scroll bars and buttons) and the events (such as scrolling and clicking) that occur when those objects are used

Overview-An Overview of Visual Basic.NET4 OOP Terminology  OOP is an acronym for object-oriented programming  It means that you are using an object-oriented language to create a program that contains one or more objects  OOD is an acronym for object-oriented design  Like top-down design, which is used to plan procedure-oriented programs, OOD is also a design methodology, but it is used to plan object- oriented programs  OOD divides a problem into one or more objects

Overview-An Overview of Visual Basic.NET5 Object An Object :  Is Anything that can be seen or touched  Has attributes (properties) that describe it  Has behaviors(events) that the object can either perform or have performed on it

Overview-An Overview of Visual Basic.NET6 Types of Controls Ch1\Program2 on p.10 (This application can be found in the student data files)

Overview-An Overview of Visual Basic.NET7 Starting and Customizing Visual Studio.NET  Visual Studio.NET is Microsoft’s newest integrated development environment (IDE)  Includes programming languages such as Visual Basic.NET, C++.NET, C#.NET and J#  Can Create:  A Windows-based application has a Windows user interface and runs on a desktop computer  A console application  A Web-based application, on the other hand, has a Web user interface and runs on a server

Overview-An Overview of Visual Basic.NET8

9.NET Framework New Concepts  Common Language Runtime (CLR)  Execution engine  Memory management  Intermediate Language (IL)  VB.NET compiles to IL  Just-in-time compilation

Overview-An Overview of Visual Basic.NET10 Language Interoperability C# VB.NET.NET: Type System Standard

Overview-An Overview of Visual Basic.NET11 The Programming Process (1.5) The Programming Process Consists of Several Steps, Which Include Design, Creation, Testing, and Debugging Activities

Overview-An Overview of Visual Basic.NET12 Example of an Object  This is a GUI object  Data includes number-of- hours-worked, hourly-pay- rate, and gross-pay-earned  Action is to calculate and display gross-pay- earned, given number-of-hours-worked and hourly-pay-rate

Overview-An Overview of Visual Basic.NET13 Step 1 of Developing an Application  Clearly define what the program is to do  For example:  Purpose: To calculate the user’s gross pay  Input: Number of hours worked, hourly pay rate  Process: Multiply number of hours worked by hourly pay rate (The result is the user’s gross pay)  Output: Display a message indicating the user’s gross pay

Overview-An Overview of Visual Basic.NET14 Step 2 of Developing an Application  Visualize the application running on the computer and design its user interface

Overview-An Overview of Visual Basic.NET15 Step 3 of Developing an Application  Make a list of the controls needed  Partial list: TypeNameDescription TextBoxtxtHoursWorkedAllows the user to enter the number of hours worked. TextBoxtxtPayRateAllows the user to enter the hourly pay rate LabellblGrossPayDisplays the gross pay, after the btnCalcGrossPay button has been clicked ButtonbtnCalcGrossPayWhen clicked, multiplies the number of hours worked by the hourly pay rate ButtonbtnCloseWhen clicked, terminates the application

Overview-An Overview of Visual Basic.NET16 Step 4 of Developing an Application  Define the Values of Each Control's Relevant Properties: Control TypeControl NameText Form(Default)"Wage Calculator" Label(Default)"Number of Hours Worked" Label(Default)"Hourly Pay Rate" Label(Default)"Gross Pay Earned" LabellblGrossPay"$0.00" TextBoxtxtHoursWorked"" TextBoxtxtPayRate"" ButtonbtnCalcGrossPay"Calculate Gross Pay" ButtonbtnClose"Close"

Overview-An Overview of Visual Basic.NET17 Step 5 of Developing an Application  Make a list of methods needed for each control: MethodDescription btnCalcGrossPay_ClickMultiplies the number of hours worked by the hourly pay rate These values are entered into the txtHoursWorked and txt-PayRate TextBoxes The result is stored in the lblGrossPay Text property btnClose_ClickTerminates the application

Overview-An Overview of Visual Basic.NET18 Step 6 of Developing an Application  Create a pseudocode version of each method:  Pseudocode is a combination of English and a programming language  For this application: Store Number of Hours Worked times Hourly Pay Rate in grossPay. Store the value in grossPay in lblGrossPay.Text.

Overview-An Overview of Visual Basic.NET19 Step 7 of Developing an Application  Check the code for errors:  Go step by step through the code, running it in your head as though the computer is running it  Keep track of where in the code is being executed  Keep track of the values of all of the variables

Overview-An Overview of Visual Basic.NET20 Step 8 of Developing an Application  Use Visual Basic.NET to create the forms and other controls identified in step 3  This is the first use of Visual Basic.NET, all of the previous steps have just been on paper

Overview-An Overview of Visual Basic.NET21 Step 9 of Developing an Application  Use Visual Basic.NET to write the code for the event procedures and other methods created in step 6  This is the second step on the computer

Overview-An Overview of Visual Basic.NET22 Step 10 of Developing an Application  Attempt to run the application - find syntax errors  Correct any syntax errors found and repeat this step as often as necessary  All of the syntax errors must be removed before Visual Basic.NET will create a program that you can actually run on the computer

Overview-An Overview of Visual Basic.NET23 Step 11 of Developing an Application  Run the application - once all syntax errors are fixed  Run the program with a variety of test data  Check the results to be sure that they are correct  Correct any errors found  Repeat steps 10 and 11 as many times as necessary

Overview-An Overview of Visual Basic.NET24 Visual Studio.NET Recent Projects Solution Explorer Dynamic Help Toolbox

Overview-An Overview of Visual Basic.NET25 Starting a New Project Installed.NET Products Type of Project Name and Location Of Project Name of Project

Overview-An Overview of Visual Basic.NET26 Visual Basic.NET Project information Properties window Toolbox (auto- hidden) Windows Form object

Overview-An Overview of Visual Basic.NET27 The Visual Basic.NET Environment  Design Window  Solution Explorer Window  Dynamic Help Window  Properties Window  Docked and Floating Windows  Toolbox