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

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Advertisements

© by Pearson Education, Inc. All Rights Reserved.
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,
Visual Basic Project Files:.VBP file: Project File: a small text file that contains the names of other files in the project, as well as some information.
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.
The Initial Visual Basic Screen
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Introduction to Visual Basic Chulantha Kulasekere.
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.
Digital Image Processing Lecture3: Introduction to MATLAB.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
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 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Microsoft Visual Basic 2005: Reloaded Second Edition
An Introduction to Visual Basic
IE 411/511: Visual Programming for Industrial Applications
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Integrated Development Environment (IDE)
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
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.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Chapter Two Creating a First Project in Visual Basic.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Chapter 2 – Introduction to the Visual Studio .NET IDE
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.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
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 PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
COMPUTER III. Fundamental Concepts of Programming Control Structures Sequence Selection Iteration Flowchart Construction Introduction to Visual Basic.
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.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
 2007 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2005 IDE.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Dive Into® Visual Basic 2010 Express
Chapter 2: The Visual Studio .NET Development Environment
Introduction to Programming and Visual Basic .NET
Chapter 1: An Introduction to Visual Basic 2015
Visual Basic Code & No.: CS 218
Chapter Topics 15.1 Graphical User Interfaces
Chapter 2 – Introduction to the Visual Studio .NET IDE
1. Introduction to Visual Basic
Hands-on Introduction to Visual Basic .NET
CIS16 Application Development Programming with Visual Basic
Digital Image Processing
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.
Presentation transcript:

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

Elements of a VB Application The Visual Basic language is an object-oriented language that consists of two fundamental parts : – The Visual part -- consists of a set of objects. – The Language (code) part -- consists of a high-level procedural programming language. To create an application -- which is a VB application or program that can be run under the Windows operating system both elements of the language, objects and code, must be used together.

The Visual Element The visual part of an application consists of the graphical user interface (GUI) of the application. A GUI is constructed by placing a set of visual objects on a form. The standard object Toolbox contains the objects that can be used in constructing a GUI. Each object contains two basic characteristics: – Properties -- define particular characteristics of the object and – Methods -- are the predefined procedures that are supplied with the object for performing specific tasks. Each object from the Toolbox recognizes certain actions, which are referred to as events.

The Language Element Visual Basic is a high-level programming language that supports all of the procedural programming features found in other modern languages. In GUIs and event-driven applications, the code that is executed depends on what events occur, which in turn depends on what the user does.

Getting Started in VB Visual Studio is the integrated development environment (IDE) that is used to create, test, and debug projects. Launching Visual Basic.NET displays the Start Page.

Start Visual Studio.NET from the Windows Desktop

Visual Basic.NET Start Page Start page allows the programmer to open recent projects, open any previously saved project, and create a new project.

New Project Dialog Window Clicking the New project button on the Start Page to open the New Project Dialog box

VB.NET IDE Windows Workspace When a new project is created, the GUI designer component of the IDE is displayed. The IDE also has two other components: a code editor and a debugger. The IDE offers all of the capabilities of a Windows-based application, such as the ability to resize and close any of the child windows, as well as the overall parent window.

VB.NET Workspace

VB.NET Applications The steps that are required for creating a Visual Basic application are: 1. Create the graphical user interface (GUI). 2. Set the properties of each object on the interface. 3. Write the code or add events. 4. Debug -- test the application. The first step, creating the GUI, consists of adding objects from the Toolbox to the design form.

Toolbox The Toolbox window contains a set of controls that can be placed on a Form window to produce a graphical user interface (GUI – “goo-ey”). The toolbox can be opened by choosing the command Toolbox in the View menu.

Solution Explorer Window Solution Explorer Window provides an easy access to different application files including files contains forms and codes.

Properties Window -- Set Properties Once objects have been added to the form, the next step is setting the properties of the objects. The properties of objects are set through the Properties window or code (inside the program). Two important properties of objects are the Name property and the Text property. The Name property allows the programmer to assign a descriptive name to an object, rather than using the default name provided by Visual Basic for that object. The value of the Text property of an object is displayed to the user when the application is running.

Add Event Procedure An event procedure is a procedure or event handler executed when that event occurs. The first line of a procedure is a header line. A header line begins with the optional keyword Private and must contain the keyword Sub, the name of the procedure, and a set of parentheses. The last line of each procedure consists of the keywords End Sub. All statements from the header line to and including the End Sub statement are collectively referred to as the procedure’s body. The first and last lines of a procedure, consisting of the header line and the End Sub statement, are referred to as the procedure’s template

Test or Run Application You can run your program at any time during program development: – Select the Debug Menu and click Start or – Press the F5 function key or – Use the hot key sequence Alt+D, then press the S key Design time: when an application is being developed Run time: when a program is executing

Saving and Recalling a Project To save an application – Click the File menu and then click Save All or – Click the SaveAll icon in the Standard Toolbar To retrieve a project: – Select Open Solution from the File menu

Example – Step 1: Adding Controls

Example -- Step 2: Adding Properties