Tutorial 11 Introduction to Visual Basic zLanguage developed for special-purpose Windows applications – 1991 zUses IDE – Integrated Development Environment.

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

Information System Design Lab 5&6. User Interface Design.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
© 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,
A graphical user interface (GUI) is a pictorial interface to a program. A good GUI can make programs easier to use by providing them with a consistent.
Chapter 1: An Introduction to Visual Basic.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Introduction to computers & Visual Basic School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 3, Monday 1/27/2003)
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.
Introduction to Programming and Visual Basic
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.
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
Visual Basic Chapter 1 Mr. Wangler.
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.
IE 411/511: Visual Programming for Industrial Applications
Chapter 1: An Introduction to Visual Basic 2005 Programming with Microsoft Visual Basic 2005, Third Edition.
Appendices A - F A-F Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Introduction to Visual Basic.NET Your First Visual Basic.NET Application.
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.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
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.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
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.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
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.
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.
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 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Chapter 1: An Introduction to Visual Basic .NET
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
1. Introduction to Visual Basic
How to design a Windows Forms application
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
CIS16 Application Development Programming with Visual Basic
An Introduction to Computers and Visual Basic
Chapter 15: GUI Applications & Event-Driven Programming
Introduction to Visual Basic 2010
Presentation transcript:

Tutorial 11 Introduction to Visual Basic zLanguage developed for special-purpose Windows applications – 1991 zUses IDE – Integrated Development Environment zCode based on Q-Basic zEvent Driven zPrebuilt graphical components (controls)

Tutorial 12 Two Time Frames zDesign Time – when application is being built zRun Time – when application is actually functioning

Tutorial 13 Steps in building a VB Application 1.Create the GUI 2.Set the properties for all controls 3.Write the code

Tutorial Creating the GUI zForm – container for different components of the interface yBecomes window on desktop at Run time yShows grid for aligning controls at Design time – measured in TWIPS (1/1440 in) yGraphical elements placed on Form called Objects or Controls yControls can be added (& properties changed) during Design & during Run times

Tutorial 15 Opening a Project zTo open a new project, use the File menu’s New Project command. zTo open an existing project, click the Open Project button on the Standard toolbar. You also can use the Open Project command on the File menu, or the Ctrl+O key combination.

Tutorial 16 Five windows included in the Visual Basic Startup Screen zMain zForm zToolbox zProject Explorer (Project) zProperties

Tutorial 17 Visual Basic startup screen Toolbox Form

Tutorial 18 Default-size label control added to the form

Tutorial 19 Classes and Objects zEach tool in the toolbox represents a class, which is a pattern from which one or more objects, called controls, are created zEach control you create is an instance of the class from which it was created

Tutorial 110 Sizing, Moving, and Deleting Controls zYou can size, move, and delete a control, as well as set its properties yBefore you can delete a control, the control must be selected and the form must be the active window

Tutorial 111 Selecting More Than One Control zYou can change a property for more than one control at a time yClick the first control you want to select, then Ctrl-Click the remaining controls yUse the mouse pointer selection method

Tutorial Setting the properties zProperties – attributes of a control (size, color, caption, etc.) yProperties Window yDefault values yForm is actually a control itself with properties

Tutorial 113 Project and Properties Windows

Tutorial 114 Caption vs Name Property zCaption property y the text seen by the user zName property yassigns a name to an object yused by the programmer to refer to an object in code

Tutorial 115 Name Property zMust begin with a letter zCan contain letters, numbers, and the underscore character only zMust not contain punctuation characters or spaces zMust not exceed 40 characters zUse the three-character IDs shown in Figure 1-10 (lbl, cmd, txt, frm,…etc.)

Tutorial Writing the Code zEvent – action that can occur at run time zCode written in code window – can double click a control at Design time & write code or click on View Code button & select control zEvent procedure – the code that tells computer what to do if an event happens

Tutorial 117 Open Code Window

Tutorial 118 Listing of Properties and Methods

Tutorial 119 Editor Tab in the Options Dialog Box

Tutorial 120 Saving a Project zClick the Save Project button on the Standard toolbar. Provide a name for the form and the project. zYou also can use the Save As and Save Project As commands on the File menu. However, be sure to save the form before saving the project.

Tutorial 121 Starting and Ending a Project zTo start a project: Click the Start button on the Standard toolbar. You also can press F5 or use the Start command on the Run menu. zTo end a project: Click the End button on the Standard toolbar. You also can use the End command on the Run menu.

Tutorial 122 Printing an Application

Tutorial 123 Getting Help z Use the Help menu’s Contents, Index, or Search commands. z Click the object, window, property, and so on for which you want help, then press the F1 key.

Tutorial 124 MSDN Library Visual Studio 6.0

Tutorial 125 Caption Property’s Help Screen

Tutorial 126 Making an Executable File zVisual Basic’s compiler translates the application’s code into machine code zThe machine code is stored in a file with a.exe extension on its name Not in working model of VB!

Tutorial 127 Debugging Technique zPrint the application’s properties (Form As Text) and code. zIn the properties printout, look for a property that is not set correctly. zIn the code printout, look for an instruction that is either in the wrong object’s Code window or in the wrong event procedure.