|
|
Introduction to Visual Basic Programming ZEDZ@PSIS VB Chapter 1 E3062
At the end of the lesson, students should be able : OBJECTIVES Chapter 1 VB To understand basic concept of VB. To explain visual programming concepts with ‘WYSIWYG’ characteristic. Introduce Integrated Development Environment in VB. Understand the basic structure of project. Identify the standard VB objects & window characteristics ZEDZ@PSIS
WHAT IS VISUAL ? Chapter 1 VB ZEDZ@PSIS Visual refers to the representation of an object in graphical form. Objects in VB are Label, TextBox, Frame, Scrollbar, ListBox, ComboBox, CheckBox, Shape, Image, PictureBox etc. These objects are available in the visual programming language. INFO
WHY GRAPHICAL REPRESENTATION? Chapter 1 VB ZEDZ@PSIS Graphical representation enables programs to be developed effortlessly. The program appears to be more interesting to the user. Development of a more user-friendly program.
Visual Basic (VB) is a high level programming language. It evolved from the earlier DOS version called BASIC (Beginner’s All-Purpose Symbolic Instruction Code) programming language. The concept was co-founded by Prof John Kenemy & Thomas Kurtz from Dartmouth College, USA. VISUAL BASIC IN A NUTSHELL VB ZEDZ@PSIS
VISUAL BASIC IN A NUTSHELL VB ZEDZ@PSIS Designed specifically to cater Window Forms Application (WFA) & Internet Application development. Apply the visual programming concept with ‘WYSIWYG’ characteristic.
ZEDZ@PSIS WYSIWYG ? VB WYSIWYG is an abbreviation for What You See Is What You Get! INFO
VB is a visual & events driven programming language. VISUAL BASIC IN A NUTSHELL Chapter 1 VB ZEDZ@PSIS In VB, programmer is required to design the interface application that contain the graphic objects including the functions based on the events. INFO Events are actions that take place when the user does something to the object. TIPS
DIFF. BETWEEN VB & C PROGRAM Chapter 1 VB ZEDZ@PSIS The functions of VB are differently developed. Each function is developed to instruct an object to perform actions based on the event that has taken place. However, in C++ programming, the functions built into a program are program components that are ‘called’ from the main program.
ADVANTAGES OF VISUAL BASIC Chapter 1 VB ZEDZ@PSIS Provides easy graphic interface 1 2 3 Capable of achieving API The convenience of OOP Controls errors in writing 4 5 Can implement structural programs INFO API is a set of programming instructions and standards for Accessing a Web-based software application or Web-tool.
CONVENIENCE OF OOP ? Chapter 1 VB ZEDZ@PSIS INFO OOP Object Oriented Programming. When an application / project is created by using objects and combining them to produce results, then the application developer is definitely working in an object - oriented environment.
OBJECT ELEMENTS IN VB Chapter 1 VB ZEDZ@PSIS Objects are a combination of code and data which can be treated as a single item. Objects provide code which you don’t have to write! Objects (in the form of control) are the single biggest reason why VB is better. If an objects is copied or saved, both the code and data will also be respectively copied & saved. TIPS
OBJECT ELEMENTS IN VB Chapter 1 VB ZEDZ@PSIS
OBJECT ELEMENTS IN VB Chapter 1 VB ZEDZ@PSIS
VB APPLICATION BUILDING STEPS Chapter 1 VB ZEDZ@PSIS Design the interface 1 2 3 Set the control (Object) properties Write the event procedures
STARTING VISUAL BASIC Chapter 1 VB ZEDZ@PSIS
VISUAL BASIC 6.0 MAIN INTERFACE Chapter 1 VB ZEDZ@PSIS Choose standard EXE & click Open. Alternatively, Alt – O performs similar action. TIPS
VISUAL BASIC 6.0 IDE ? Chapter 1 VB ZEDZ@PSIS Integrated Development Environment or IDE is a term used to describe the interface & environment used to create applications. Components of Visual Basic IDE: Menu Bar & Tool Bar Project Explorer Properties & Form Layout Window Tool Box Form Designer Object Browser
ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB
ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB The toolbars in the menu bar provide quick access to the commonly used commands.
ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB
ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB
ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB
ZEDZ@PSIS VISUAL BASIC 6.0 MAIN INTERFACE VB
STANDARD OBJECTS IN VB 6.0 Chapter 1 VB ZEDZ@PSIS
PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS Project Explorer contains three buttons that are called View Code View Object and Toggle Folders.
PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS
PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS
PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS
PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS
PROJECT EXPLORER & PROPERTY WINDOW Chapter 1 VB ZEDZ@PSIS
Summary: Introduction to Visual Basic 6 (VB6)
| URL: |
No comments posted yet
Comments