VISUAL BASIC.

Slides:



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

Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
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.
Using the Visual Basic Editor Visual Basic for Applications 1.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Visual Basic Fundamental Concepts. Integrated Development Enviroment Generates startup form for new project on which to place controls. Features toolbox.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
1 Web-Enabled Decision Support Systems Objects and Procedures Don McLaughlin IE 423 Design of Decision Support Systems (304)
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
IE 411/511: Visual Programming for Industrial Applications
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?)
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Introduction to Problem Solving and Control Statements.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
National Diploma Unit 4 Introduction to Software Development Procedures and Functions.
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
Automation Testing- QTP Rajesh Charles Batch No: Date: jan
D OTNET ONLINE TRAINING. DOTNET Online Training Course Content : Introduction to.Net Online Training NET FUNDAMENTALS Why Dot Net? The Dot Net initiative.
Introduction to Visual Basic. NET,. NET Framework and Visual Studio
Dive Into® Visual Basic 2010 Express
Visual Basic Fundamental Concepts
Programming Right from the Start with Visual Basic .NET 1/e
Visual Basic.NET Windows Programming
Introduction to Programming Lecture 2
Chapter 2: The Visual Studio .NET Development Environment
Object Oriented Programming
VBA - Excel VBA is Visual Basic for Applications
Introduction to Programming and Visual Basic .NET
Chapter 1: An Introduction to Visual Basic 2015
Introduction to Computer CC111
Chapter Topics 15.1 Graphical User Interfaces
Introduction to Visual Basic 2008 Programming
Chapter 8: Writing Graphical User Interfaces
Visual Basic 6 (VB6) Data Types, And Operators
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
1. Introduction to Visual Basic
Visual programming Chapter 1: Introduction
3.01 Apply Controls Associated With Visual Studio Form
Using Procedures and Exception Handling
VB 6.0.
An Introduction to Visual Basic .NET and Program Design
Visual Basic..
Visual Basic.
Social Media And Global Computing Introduction to Visual Studio
Hands-on Introduction to Visual Basic .NET
CIS16 Application Development Programming with Visual Basic
CIS16 Application Development – Programming with Visual Basic
P.J.Balakumaran, AP, Commerce CA, SNMV CAS
CS285 Introduction - Visual Basic
Introduction to Problem Solving and Control Statements
Visual Studio.
Tonga Institute of Higher Education
Chapter 15: GUI Applications & Event-Driven Programming
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Visual Basic for Applications: Introduction
Presentation transcript:

VISUAL BASIC

CONTENTS INTRODUCTION FEATURES OF VB APPLICATION OF VB IDE VB STRUCTURE

INTRODUCTION Visual Basic is a 3RD generation event-driven programming language first released by Microsoft in 1991. It evolved from the earlier DOS version called BASIC. BASIC means Beginners‘ All purpose Symbolic Instruction Code. Since then Microsoft has released many versions of Visual Basic, from Visual Basic 1.0 to the final version Visual Basic 6.0. Visual Basic is a user-friendly programming language designed for beginners, and it enables anyone to develop GUI window applications easily.

FEATURES OF VB It is a object based and event-driven programming language. Visual Basic was derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and objects. Forms are created using drag-and-drop techniques.

An Empty Form in VB

APPLICATIONS Visual basic can mean more than one thing. It is programming tool for creating window GUI Apps. VB Applications is a version of VB that is used to programs of office apps such as Access, Excel, Word and Power point. VB. NET is a part of .net and is a powerful programming language that is made needlessly complex by using the .net framework

INTEGRATED DEVELOPMENT ENVIRONMENT An integrated development environment (IDE), also known as integrated design environment and integrated debugging environment, is a type of computer software that assists computer programmers to develop software. In the case of Visual Basic .NET, that IDE is Visual Studio.

IDE CONTENTS Toolbox Solution Explorer Properties Windows Object Browser

Tool Box The Toolbox is a palette of developer objects, or controls, that are placed on forms or web pages, and then code is added to allow the user to interact with them. An example- TextBox, Button and ListBox controls. With these three controls added to a Windows Form object the developer could write code that would take text.

Solution Explorer This is a section that is used to view and modify the contents of the project. A Visual Studio Windows Application Project will generally have a Form object with a code page, references to System components and possibly other modules with special code that is used by the application.

Properties Window Object Browser The properties windows shows all the control (like TextBox) properties to be changed at design time. Most of these properties can be also changed with code at run time, but basically most properties change the way the control is displayed on your application. Object Browser By pressing F2 or selecting it into the View menu, it's possible to explore all the available objects of the libraries (types, functions...).

VB STRUCTURE Variable declaration types User defined data types Scope and life of a variable Array Constructors Control flow statements Procedures and function

Variable Declaration Types To declare a variable to specify its name and characteristics. The declaration statement for variables is the Dim Statement. Its location and contents determine the variable's characteristics. Declaration Levels Local and Member Level A local variable is one that is declared within a procedure. A member variable is a member of a Visual Basic type; it is declared at module level, inside a class, structure, or module, but not within any procedure internal to that class, structure, or module.

Shared and Instance Variable In a class or structure, the category of a member variable depends on whether or not it is shared. If it is declared with the Shared keyword, it is a shared variable, and it exists in a single copy shared among all instances of the class or structure. Otherwise it is an instance variable, and a separate copy of it is created for each instance of the class or structure

User defined data types A user defined type, or UDT, is a VB technique for defining a data type that exactly meets the needs of your program. A UDT can contain two or more individual data items that can be of different types, such as String and Integer. A UDT can even contain other UDTs and arrays. You can also create arrays of a UDT. To define a UDT, use the Type...End Type statement, which must appear in the declarations section of a code module. Within the statement, you define the individual items, or members, that the UDT will contain

SCOPE AND LIFE OF A VARIABLE A Variable’s Scope : The scope of a variable is the section of the application that can see and manipulate the variable. If a variable is declared within a procedure, only the code in the specific procedure has access to that variable. When the variable’s scope is limited to a procedure it’s called local.

ARRAY IN VB An array is a set of values, which are termed elements, that are logically related to each other. For example, an array may consist of the number of students in each grade in a grammar school; each element of the array is the number of students in a single grade. Similarly, an array may consist of a student's grades for a class; each element of the array is a single grade. For example, if our application analyzes student grades, we can use a separate variable for each student's grade, such as englishGrade1, englishGrade2, etc.

CONTROL FLOW STATEMENT IN VB Control Statements are used to control the flow of program's execution. Visual Basic supports control structures such as if... Then, if...Then ...Else, Select...Case, and Loop structures such as Do While...Loop, While...Wend, For...Next etc method.If...Then selection structure The If...Then selection structure performs an indicated action only when the condition is True; otherwise the action is skipped. Syntax of the If...Then selection If <condition> Then statement End If e.g.: If average>75 Then txtGrade.Text = "A" End If

PROCEDURE AND FUNCTIONS IN VB We use procedures and functions to create modular programs. Visual Basic statements are grouped in a block enclosed by Sub, Function and matching End statements. The difference between the two is that functions return values, procedures do not. A procedure and function is a piece of code in a larger program. They perform a specific task. The advantages of using procedures and functions are: Reducing duplication of code Decomposing complex problems into simpler pieces Improving clarity of the code Reuse of code Information hiding

PROCEDURE A procedure is a block of Visual Basic statements inside Sub, End Sub statements. Procedures do not return values. Option Strict On Module Example Sub Main() SimpleProcedure() End Sub Sub SimpleProcedure() Console.WriteLine("Simple procedure") End Module

FUNCTION A function is a block of Visual Basic statements inside Function, End Function statements. Functions return values. There are two basic types of functions. Built-in functions and user defined ones. The built-in functions are part of the Visual Basic language. There are various mathematical, string or conversion functions.

FUNCTION IN VB

THANK YOU