1. Introduction to Visual Basic

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

Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
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.
Exploring the Basics of Windows XP. Objectives Start Windows XP and tour the desktop Explore the Start menu Run software programs, switch between them,
Introduction to computers & Visual Basic School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Monday 1/27/2003)
Introduction to Visual Basic What it is, and a simple program Mike Thelwall University of Wolverhampton, UK.
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)
Exploring the Basics of Windows XP
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Visual Basic 2005: Reloaded Second Edition
An Introduction to Visual Basic
IE 411/511: Visual Programming for Industrial Applications
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Integrated Development Environment (IDE)
§Visual - A method used to create GUI applications. §BASIC - Beginner’s All - purpose Symbolic Instruction Code developed by John Kemeny. §VB- Evolved.
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.
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
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.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
Visual Basic Programming Introduction VB is one of the High level language VB has evolved from the BASIC language. BASIC stands for Beginners All-purpose.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Integrated Development Environment Visual Basic IDE Slide 2 of 10 Topic & Structure of the lesson Introduction Integrated Development Environment Tool.
1 Visual Basic Part I - A tool for customizing your program Principles of GIS
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.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
 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.
Chapter 1 Introduction to Visual Basic
Dive Into® Visual Basic 2010 Express
Visual Basic.NET Windows Programming
Chapter 2: The Visual Studio .NET Development Environment
Chapter 1: An Introduction to Visual Basic 2015
Visual Basic Code & No.: CS 218
Introduction to Computer CC111
Chapter Topics 15.1 Graphical User Interfaces
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
An Introduction to Computers and Visual Basic
VB 6.0.
Exploring the Basics of Windows XP
VISUAL BASIC.
Visual Basic.
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
Hands-on Introduction to Visual Basic .NET
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
Exploring the Basics of Windows XP
Building an Application in the Visual Basic .NET Environment
P.J.Balakumaran, AP, Commerce CA, SNMV CAS
Visual Studio.
An Introduction to Computers and Visual Basic
Chapter 15: GUI Applications & Event-Driven Programming
Visual C# - GUI and controls - 1
Chapter 4 Enhancing the Graphical User Interface
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

1. Introduction to Visual Basic Microsoft Visual Basic is the fastest and easiest way to create applications for Microsoft windows. visual basic provides you with a complete set of tools to simplify application development such as easy to use, user friendliness, faster application development, internet features and active X technology.

1.1 Event Driven Programming Visual basic is an event driven programming language. An event is an action performed by user, and applications that handle those events are called Event Driven Application. Event driven programming is the most important feature of visual basic.

Event-driven applications execute Basic code in response to an event. Each form and control in visual basic has a predefined set of events, like mouse click, key press, button click etc. In procedural application developed using C and other procedure oriented programming language execution start from first line (or main function) of code

The “Visual” part visual basic refers to the method used to create the graphical user interface (GUI). The “Basic” part refers to the BASIC (Beginners All-Purpose Symbolic Instruction Code) language, a language used by more programmers than any other language in the history of computing.

Visual Basic has evolved from the original BASIC language and now contains several hundred statements, functions, and keywords, many of which relate directly to the windows GUI. The Visual Basic programming system, application Edition included in Microsoft Excel, Microsoft Access, and many other Windows applications uses the same language.

1.2 Understanding VB environment The working environment in Visual Basic is often referred to as the Integrated Development Environment or IDE. Because It integrates many different functions such as design ,design ,editing ,compiling ,and debugging within a common environment.

To start Visual Basic from windows go through -- Click Start>Programs>Microsoft Visual Studio>Microsoft Visual Basic 6.0. Use the windows explorer to find My Computer to find the Visual Basic executable file. 3) Double click the Visual Basic icon if available on desktop.

Integrated Development Environment Elements The visual Basic integrated development environment(IDE) consists of the following elements.

Elements of IDE:- Menu Bar Tool Bar Project Explorer Toolbox Property Window Form Layout Window Object Browser Form Designer Code Editor Window Immediate, locals, and watch Windows

1] Menu Bar Displays the commands you use to work with Visual Basic. Besides the standard file, Edit, view, Window, and Help menus, menus are provided to access functions specific to programming such as Project, Format, or debug.

Menu Bar File Edit View Project Format Debug Query Diagram Tools Add-Ins Window Help

2] Toolbars click a button on the toolbar once to carry out the action represented by that button. By default, the standard toolbar is displayed when you start a Visual Basic. Additional toolbars for editing, form design and debugging can be opened.

Toolbar The above fig. shows the standard toolbar. The toolbar gives quick access to commonly used commands in the menu bar. The toolbar displayed below the menu bar The Visual Basic provides additional toolbars for specific purpose such as Edit toolbar, Debug toolbar, Form editor toolbar.

3] Project Explorer Lists the forms and modules in your current project. A project is the collection of files you use to build an application

Project explorer The window which contains the titled project is the Project Explorer. The project explorer window displays all the project components in a hierarchical order. It displays project and all the forms in it, class modules as well as MDI forms.

Toolbox The toolbox contains different controls these controls are as follows:- Pointer Picture box Label Textbox Frame Command button Check box Option button Combo box List box Scroll bars Timer Drive list box Dirlistbox File list box Data control Provides a set of tools that you use at design time to place controls on a form.

5] Properties Window Lists the property settings for the selected form or control. A property is a characteristic of an object, such as size, caption, or color.

Property window The property window contains the properties of selected control. Properties means attributes of any object such as its name, size, color . The common properties for all the controls are name, caption, backcolor, enable, visible, appearance etc.

The form layout window The form layout window determines the initial position of the forms in your application using a small graphical representation of the screen. The form layout window default present in the lower right corner of the IDE.

7] Object Browser Lists objects available for use in your project and gives you a quick way to navigate through your code. 8] Form Designer A window that is used to design the interface of your application .You add controls, graphics, and pictures to a form. Each form in your application has its own form designer window.

9] Code Editor Window A window used for entering application code. A separate code editor window is created for each form or code module in your application.

Code Window Where the codes for forms, events and methods are written, displayed and modified

11] Immediate, locals, and watch Windows These additional Windows are provided for use in debugging your application . They are only available when you are running your application within the IDE.

The Anatomy of Forms

Project Types:-- Standard EXE ActiveX EXE ActiveX DLL ActiveX control Data Project IIS Application ActiveX Document DLL ActiveX Document EXE DHTML Application