SlideShare a Scribd company logo
1 of 21
Download to read offline
I
A Complete Tutorial for Beginners
LIEW VOON KIONG
II
Disclaimer
Visual Basic 2008 ® Made Easy- A complete tutorial for beginners is an independent
publication and is not affiliated with, nor has it been authorized, sponsored, or
otherwise approved by Microsoft Corporation.
Trademarks
Microsoft, Visual Basic, Excel and Windows are either registered trademarks or
trademarks of Microsoft Corporation in the United States and/or other countries.
Liability
The purpose of this book is to provide a basic guide for people interested in Visual
Basic® programming. Although every effort and care has been taken to make the
information as accurate as possible, the author shall not be liable for any error, harm
or damage arising from using the instructions given in this book.
Copyright ® 2009 Liew Voon Kiong
All rights reserved. No Part of this e-book may be reproduced, in any form or by any means, without
permission in writing from the author.
III
Acknowledgement
I would like to express my sincere gratitude to many people who have made their
contributions in one way or another to the successful publication of this book.
My special thanks go to my children Xiang, Yi and Xun. My daughter Xiang edited
this book while my sons Yi and Xun contributed their ideas and even wrote some of
the sample programs for this book. I would also like to appreciate the support
provided by my beloved wife Kim Huang and my youngest daughter Yuan. I would
also like to thank the million of visitors to my Visual Basic Tutorial website at
www.vbtutor.net, especially those who contributed their comments, for their support
and encouragement.
About the Author
Dr. Liew Voon Kiong holds a bachelor degree in Mathematics, a master degree in
Management and a doctoral degree in Business Administration. He has been
involved in programming for more than 15 years. He created the popular online
Visual Basic Tutorial at www.vbtutor.net in 1996 and since then the web site has
attracted millions of visitors and it is one of the top searched Visual Basic Tutorial
websites in many search engines including Google. In order to provide more support
for the Visual Basic hobbyists, he has written this book based on the Visual Basic
tutorial. He is also the author of Visual Basic 6 Made Easy, Visual Basic 2010
Made Easy and Excel VBA Made Easy.
IV
TABLE OF CONTENTS
Chapter 1 Introduction to Visual Basic 2008
1.1 A brief description of Visual Basic 2008
1.2 The Visual Basic 2008 Integrated Development Environment
1
1
2
Chapter 2 Working with Controls
2.1 Using Text Box
2.2 Using List Box
6
7
7
Chapter 3 Working with Control Properties
3.1 Setting Control Properties in Properties Window
3.2 Setting Control Properties Using Code
9
9
10
Chapter 4 Object Oriented Programming
4.1 Encapsulation
4.2 Inheritance
4.3 Polymorphism
12
12
12
13
Chapter 5 Writing the Code
5.1 The Event Procedure
5.2 Writing the Code
16
16
17
Chapter 6 Managing VB2008 Data
6.1 Visual Basic 2008 Data Types
6.1.1 Numeric Data Types
6.1.2 Non-numeric Data Types
6.1.3 Suffixes for Literals
6.2 Managing Variables
6.2.1 Variable Names
6.2.2 Declaring Variables
6.2.3 Assigning Values to Variables
6.3 Constants
6.3.1 Declaring a Constant
20
20
20
21
21
22
22
23
24
25
25
V
Chapter 7 Mathematical Operations
7.1 Basic Arithmetic Operations
7.2 Pythagoras Theorem
7.3 BMI Calculator
26
26
27
28
Chapter 8 String Manipulation
8.1 String Manipulation Using + and & signs.
8.2 String Manipulation Using VB2008 Built-in Functions
8.2.1 The Len Function
8.2.2 The Right Function
8.2.3 The Left Function
30
30
32
32
33
35
Chapter 9 Controlling Program Flow
9.1 Conditional Operators
9.2 Logical Operators
9.3 Using If control structure with Comparison Operators
9.3.1 If...Then Statement
9.3.2 If....Then...Else Statement
9.3.3 If....Then...ElseIf Statement
35
36
37
37
37
38
40
Chapter 10 Select Case Control Structure
10.1 The Select Case...End Select Structure
41
41
Chapter 11 Looping
11.1 For...Next Loop
11.2 Do Loop
11.3 While...End While Loop
43
43
46
47
Chapter 12 Functions
12.1 MsgBox( ) Function
12.2 The InputBox( ) Function
47
48
51
Chapter 13 String Functions
13.1 The Mid Function
13.2 The Right Function
13.3 The Left Function
13.4 The Trim Function
53
53
54
55
56
VI
13.5 The Ltrim Function
13.6 The Rtrim Function
13.7 The InStr function
13.8 The Ucase and the Lcase Functions
13.8 The Chr and the Asc functions
57
57
57
58
58
Chapter 14 Mathematical Functions
14.1 The Abs function
14.2 The Exp function
14.3 The Fix Function
14.4 The Int Function
14.5 The Log Function
14.6 The Rnd( ) Function
14.7 The Round Function
59
59
59
60
61
61
61
62
Chapter 15 Formatting Functions
15.1 Predefined Format Function
15.2 User-Defined Function
63
63
64
Chapter 16 Formatting Date and Time
16.1 Formatting Date and time using predefined formats
16.2 Formatting Date and time using user-defined formats
67
67
68
Chapter 17 Using the Check Box 70
Chapter 18 Using the Radio Button 76
Chapter 19 Creating a Simple Web Browser 80
Chapter 20 Errors Handling
20.1 Introduction
20.2 Using On Error GoTo Syntax
20.3 Errors Handling using Try.....Catch....End Try Structure
83
83
83
85
Chapter 21 Reading and write Files
21.1 Introduction
21.2 Reading a Text File
21.3 Writing to a Text File
87
87
87
91
VII
Chapter 22 Creating and Managing Graphics
22.1 Introduction
22.2 Creating the Graphics Object
22.3 Creating a Pen
22.4 Drawing a Line
22.5 Creating Rectangles
22.6 Customizing Line Style of the Pen Object
22.7 Drawing Ellipse
22.8 Drawing a Circle
22.9 Drawing Text
22.10 Drawing Polygons
22.11 Drawing a Pie
22.12 Drawing and Filling an Ellipse
22.13 Drawing and Filling a Polygon
22.14 Drawing and Filling a Pie
94
94
94
95
96
97
99
100
102
103
105
108
110
111
112
Chapter 23 Packaging Applications for Distribution
23.1 Creating the Setup Program using Publish Wizard
23.2 Testing your Install Program
113
113
118
8
Chapter 1
Introduction to Visual Basic 2008
A brief description of Visual Basic 2008
Getting to know the Visual Basic 2008 Integrated Development
Environment
1.1 A brief description of Visual Basic 2008
Visual Basic 2008 is the latest version of Visual Basic launched by Microsoft
in the year 2008. It is almost similar to Visual Basic 2005 and but it has added
many new features. Visual Basic has gone through many phases of
development since the days of BASIC that was built for DOS . BASIC stands
for Beginners' All-purpose Symbolic Instruction Code. The program code in
Visual Basic resembles the English language. Different software companies
had produced many different versions of BASIC for DOS, such as Microsoft
QBASIC, QUICKBASIC, GWBASIC, and IBM BASICA and more. Then,
Microsoft launched the first graphical BASIC which was known as Visual
Basic Version1 in 1991. It is GUI based and especially developed for MS
window. Since then the DOS versions of BASIC were slowly phased out and
almost completely replaced by Visual Basic.
Visual Basic was initially a functional or procedural programming language
until the popular Visual Basic 6. Then, Microsoft decided to make Visual Basic
into more powerful object oriented programming language, Visual Basic 2005
was launched with that purpose in mind. Visual Basic 2005 is an object
oriented programming language and it was to be taken over by Visual Basic
2008. Visual Basic 2008 is a full-fledged Object-Oriented Programming (OOP)
Language, so it has caught up with other OOP languages such as C++, Java,
C# and others. However, you don't have to know OOP to learn VB2008. In
fact, if you are familiar with Visual Basic 6, you can learn VB2008 effortlessly
9
because the syntax and interface are almost similar. Visual Basic 2008
Express Edition is available free for download from the Microsoft site.
1.2 The Visual Basic 2008 Integrated Development
Environment
When you launch VB2008 Express, the Integrated Development Environment
will be presented to you, as shown in Figure 1-1.
Figure 1-1: The VB2008 IDE
The IDE consists of a few panes, namely:
• The Recent Projects Pane- it shows the list of projects that have been
created by you recently.
• The Getting Started Pane- It provides some helpful tips to quickly
develop your applications
• The VB Express Headlines pane- It provides latest online news about
Visual Basic 2008 Express. It will announce new releases and updates.
10
To start creating your first application, you need to click on File on the menu
bar and select New Project. The VB2008 New Project dialog box will appear,
as shown in Figure 1-2
Figure 1-2: VB2008 New Project Dialog Box
The dialog box offers you five types of projects that you can create. As we are
going to create a Windows application, we will select Windows Forms
Application. At the bottom of this dialog box, you can change the default
project name WindowsApplication1 to some other name you like, for
example, MyFirstProgram. After you have renamed the project, click OK to
continue. The VB2008 IDE with a new Form will appear, as shown in Figure
1-3. It consists of an empty form, the common controls toolbox, the solution
explorer and the Properties Window.
11
Figure 1-3: VB2008 IDE with A New Form
Now let’s create your first program. First of all, drag one common button into
the form and change its default name to calculate, as shown in Figure 1-4.
Figure 1-4 The design Interface
Next, click on the calculate button and enter the following code at the source
code window as shown in Figure 1-5.
12
Private Sub Button1_Click (ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim num1, num2, sum As Single
num1 = 100
num2 = 200
sum = num1 + num2
MsgBox (" The Sum of” & num1 & " and “& num2 & “is " & sum)
End Sub
Now run your first application! And you can see the follow message box
showing the sum of two numbers.
Figure 1-5: The Code window
13
Figure 1-6: The Output Window
Chapter 2
Working with Controls
Getting to know Visual Basic 2008 controls
Getting to know the Control Properties.
14
The Visual Basic 2008 Common
Control Toolbox consists of all the
controls essential for developing a
VISUAL BASIC 2008 application.
Controls in VB2008 are useful tools
that can be placed in the form to
perform various tasks. They are used
to create many kinds of Windows
applications. The diagram on the
right is the Toolbox that contains
the controls of VB2008. They are
categorized into Common Controls,
Containers, Menus, Toolbars, Data,
Components, Printings and Dialogs.
At the moment, we will focus on the
common controls. Some of the most
used common controls are Button,
Label, ComboBox, ListBox,
PictureBox, TextBox and more, as
shown in Figure 2-1 Figure 2-1
To insert a control into your form, you just need to drag the control and drop it
into the form. You can reposition and resize it as you like. Let’s examine a few
programs that made use of Button, Label, TextBox, ListBox and PictureBox.
You don't have to worry so much about the code because I will explain the
program syntax as you progress to later Chapters.
2.1 Using Text Box
In this program, you insert two textboxes, three labels and one button. The
two textboxes are for the users to enter two numbers, one label is to display
the multiplication operator and the other label is to display the equal sign. The
15
last label is to display the answer. The run time interface is shown in Figure 2-
2
Figure 2-2 The Multiplication Program
The Code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim num1, num2, product As Single
num1 = TextBox1.Text
num2 = TextBox2.Text
product = num1 * num2
Label3.Text = product
End Sub
2.2 Using List Box
This program will add one item at a time as the user enters an item into the
TextBox and click the Add button. In this program, you insert a TextBox and a
ListBox into the Form. The function of the TextBox is to let the user enter an
item one at a time and add it to the Listbox. The method to add an item to the
ListBox is Add. The output interface is shown in Figure 2-3.
16
Figure 2-3: The Add Items Program
The Code
Class Frm1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim item As String
item = TextBox1.Text
'To add items to a listbox
ListBox1.Items.Add(item)
End Sub
End Class
17
Chapter 3
Working with Control Properties
Setting the properties of the controls
3.1 Setting Control Properties in the Properties Window
Before writing an event procedure for the control to response to a user's input,
you have to set certain properties for the control to customize its appearance
and the way it will work with the event procedure. You can set the properties
of the controls in the properties window at design time or you can set the
properties using code
18
Figure 3-1 on the right is a typical
properties window for a form.
The title of the form is defined by
the Text property and its default
name is Form 1. To change the
form's title to any name that you
like, simple click in the box on the
right of the Text property and type
in the new name, in this example,
the title is Multiplication. Notice that
this title will appear on top of the
windows. In the properties
window, the item appears at the
top part is the object currently
selected (in Figure 3.1, the object
selected is Form1). At the bottom
part, the items listed in the left
column represent the names of
various properties associated with
the selected object while the items
listed in the right column represent
the states of the properties.
Properties can be set by
highlighting the items in the right
column then change them by
typing or selecting
Figure 3-1: The Properties Window
the options available. You may also alter other properties of the form such as
font, location, size, foreground color, background color, MaximizeBox,
MinimizeBox and more.
For example, when you select background color, the dialog box for color
selection will appear, as shown in Figure 3-2. You can then select any color
by clicking on one of the colors.
19
Figure 3-2: Color Selection
3.2 Setting Control Properties using Code
You can also change the properties of the object at run time to give special
effects such as change of color, change of shape, animation effect and more.
For example the following code will change the form color to yellow every time
the form is loaded. VB2008 uses RGB(Red, Green, Blue) to determine the
colors. The RGB code for yellow is 255,255,0. Me in the code refer to the
current form and Backcolor is the property of the form's background color. The
formula to assign the RGB color to the form is Color.FormArbg(RGB code).
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.BackColor = Color.FromArgb(255, 255, 0)
End Sub
20
You may also use the follow procedure to assign the color at run time.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.BackColor = Color.Yellow
End Sub
Both procedures above will load the form with a yellow background, as shown
in Figure 3-3
Figure 3-3: The form with yellow background
Here are some of the common colors and the corresponding RGB codes. You
can always experiment with other combinations, but remember the maximum
number for each color is 255 and the minimum number is 0. The table below
shows some of the common colors with their corresponding codes.
Table 3-1: Some common colors and their corresponding RGB codes.
The following is a program that allows the user to enter the RGB codes into
three different Textboxes and when he/she clicks the display color button, the
background color of the form changes according to the RGB code. So, this
program allows the user to change the color properties of the form at run time.
The code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
21
Dim rgb1, rgb2, rgb3 As Integer
rgb1 = TextBox1.Text
rgb2 = TextBox2.Text
rgb3 = TextBox3.Text
Me.BackColor = Color.FromArgb(rgb1, rgb2, rgb3)
End Sub
The output interface is shown in Figure 3-4
Figure 3-4: The RGB Program

More Related Content

What's hot

Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computersimran153
 
Chapter 03 - Program Coding and Design
Chapter 03 - Program Coding and DesignChapter 03 - Program Coding and Design
Chapter 03 - Program Coding and Designpatf719
 
Csf3108 lab module 1 (1)
Csf3108   lab module 1 (1)Csf3108   lab module 1 (1)
Csf3108 lab module 1 (1)soongxian
 
TechnoGeek training report
TechnoGeek training reportTechnoGeek training report
TechnoGeek training reportAnup Singh
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginnerSalim M
 
VB.NET programming
VB.NET programmingVB.NET programming
VB.NET programmingElrey Belga
 
Visual Studio 2012 Course Blackboard TIC
Visual Studio 2012 Course Blackboard TICVisual Studio 2012 Course Blackboard TIC
Visual Studio 2012 Course Blackboard TICMauricio Correa
 
Chapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 ProgrammingChapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 Programmingpatf719
 
Visual basic
Visual basicVisual basic
Visual basicDharmik
 
Chapter 01 Introduction to Visual Basic
Chapter 01 Introduction to Visual BasicChapter 01 Introduction to Visual Basic
Chapter 01 Introduction to Visual Basicgbonilla53
 
Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming francopw
 
Apress.migrating.to.windows.phone.dec.2011
Apress.migrating.to.windows.phone.dec.2011Apress.migrating.to.windows.phone.dec.2011
Apress.migrating.to.windows.phone.dec.2011gautamkumar048
 
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture AqsaHayat3
 

What's hot (20)

Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
Vb tutorial
Vb tutorialVb tutorial
Vb tutorial
 
Chapter 03 - Program Coding and Design
Chapter 03 - Program Coding and DesignChapter 03 - Program Coding and Design
Chapter 03 - Program Coding and Design
 
Csf3108 lab module 1 (1)
Csf3108   lab module 1 (1)Csf3108   lab module 1 (1)
Csf3108 lab module 1 (1)
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
TechnoGeek training report
TechnoGeek training reportTechnoGeek training report
TechnoGeek training report
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
 
Visual basics
Visual basicsVisual basics
Visual basics
 
VB.NET programming
VB.NET programmingVB.NET programming
VB.NET programming
 
Vbasic
VbasicVbasic
Vbasic
 
Visual Studio 2012 Course Blackboard TIC
Visual Studio 2012 Course Blackboard TICVisual Studio 2012 Course Blackboard TIC
Visual Studio 2012 Course Blackboard TIC
 
Chapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 ProgrammingChapter 01: Intro to VB2010 Programming
Chapter 01: Intro to VB2010 Programming
 
Visual Studio
Visual StudioVisual Studio
Visual Studio
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual basic
Visual basicVisual basic
Visual basic
 
Ch02 bronson
Ch02 bronsonCh02 bronson
Ch02 bronson
 
Chapter 01 Introduction to Visual Basic
Chapter 01 Introduction to Visual BasicChapter 01 Introduction to Visual Basic
Chapter 01 Introduction to Visual Basic
 
Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming Chapter 1 — Introduction to Visual Basic 2010 Programming
Chapter 1 — Introduction to Visual Basic 2010 Programming
 
Apress.migrating.to.windows.phone.dec.2011
Apress.migrating.to.windows.phone.dec.2011Apress.migrating.to.windows.phone.dec.2011
Apress.migrating.to.windows.phone.dec.2011
 
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture
 

Viewers also liked

How is creating power point
How is creating power pointHow is creating power point
How is creating power pointppashmak
 
Spider Access IRATA Certificate
Spider Access IRATA CertificateSpider Access IRATA Certificate
Spider Access IRATA CertificateSpider Access
 
Taller no 12 formulas1.1
Taller no 12 formulas1.1Taller no 12 formulas1.1
Taller no 12 formulas1.1beatrizq
 
Taller excel 7 autollenado
Taller excel 7 autollenadoTaller excel 7 autollenado
Taller excel 7 autollenadobeatrizq
 
LA ACTIVIDAD PESQUERA EN ESPAÑA
LA ACTIVIDAD PESQUERA EN ESPAÑALA ACTIVIDAD PESQUERA EN ESPAÑA
LA ACTIVIDAD PESQUERA EN ESPAÑAAlfredo García
 
Library Strategies Workshop
Library Strategies WorkshopLibrary Strategies Workshop
Library Strategies WorkshopNicholas Poole
 
Proyecto de articulación j228- esc 255- 2016
Proyecto de articulación  j228- esc 255- 2016Proyecto de articulación  j228- esc 255- 2016
Proyecto de articulación j228- esc 255- 2016inspeccionmontevideoeste
 
Arquitectura romana. Edificios (I): Basílicas, Termas, Mercados...
Arquitectura romana. Edificios (I): Basílicas, Termas, Mercados...Arquitectura romana. Edificios (I): Basílicas, Termas, Mercados...
Arquitectura romana. Edificios (I): Basílicas, Termas, Mercados...Alfredo García
 
Artes figurativas de la prehistoria
Artes figurativas de la prehistoriaArtes figurativas de la prehistoria
Artes figurativas de la prehistoriaAlfredo García
 
La Segunda Guerra Mundial, 1939-1945.
La Segunda Guerra Mundial, 1939-1945.La Segunda Guerra Mundial, 1939-1945.
La Segunda Guerra Mundial, 1939-1945.Alfredo García
 
Repaso Tema 2 Arte Prehistoria
Repaso Tema 2 Arte PrehistoriaRepaso Tema 2 Arte Prehistoria
Repaso Tema 2 Arte Prehistoriagesusma
 
Arte Griego I. Introducción histórica. Caracteristicas generales de la arquit...
Arte Griego I. Introducción histórica. Caracteristicas generales de la arquit...Arte Griego I. Introducción histórica. Caracteristicas generales de la arquit...
Arte Griego I. Introducción histórica. Caracteristicas generales de la arquit...Alfredo García
 
Arte griego y romano. Juego.
Arte griego y romano. Juego.Arte griego y romano. Juego.
Arte griego y romano. Juego.Alfredo García
 

Viewers also liked (20)

How is creating power point
How is creating power pointHow is creating power point
How is creating power point
 
Spider Access IRATA Certificate
Spider Access IRATA CertificateSpider Access IRATA Certificate
Spider Access IRATA Certificate
 
Taller no 12 formulas1.1
Taller no 12 formulas1.1Taller no 12 formulas1.1
Taller no 12 formulas1.1
 
Datos personales
Datos personalesDatos personales
Datos personales
 
daily_soratte_mr
daily_soratte_mrdaily_soratte_mr
daily_soratte_mr
 
Taller excel 7 autollenado
Taller excel 7 autollenadoTaller excel 7 autollenado
Taller excel 7 autollenado
 
Blue Ocean Global Technology Brochure
Blue Ocean Global Technology BrochureBlue Ocean Global Technology Brochure
Blue Ocean Global Technology Brochure
 
Arte Paleocristiano
Arte PaleocristianoArte Paleocristiano
Arte Paleocristiano
 
LA ACTIVIDAD PESQUERA EN ESPAÑA
LA ACTIVIDAD PESQUERA EN ESPAÑALA ACTIVIDAD PESQUERA EN ESPAÑA
LA ACTIVIDAD PESQUERA EN ESPAÑA
 
5. crisis de cuba
5. crisis de cuba5. crisis de cuba
5. crisis de cuba
 
Library Strategies Workshop
Library Strategies WorkshopLibrary Strategies Workshop
Library Strategies Workshop
 
Proyecto de articulación j228- esc 255- 2016
Proyecto de articulación  j228- esc 255- 2016Proyecto de articulación  j228- esc 255- 2016
Proyecto de articulación j228- esc 255- 2016
 
Impetigo (1)
Impetigo (1)Impetigo (1)
Impetigo (1)
 
Enseñanza3
Enseñanza3Enseñanza3
Enseñanza3
 
Arquitectura romana. Edificios (I): Basílicas, Termas, Mercados...
Arquitectura romana. Edificios (I): Basílicas, Termas, Mercados...Arquitectura romana. Edificios (I): Basílicas, Termas, Mercados...
Arquitectura romana. Edificios (I): Basílicas, Termas, Mercados...
 
Artes figurativas de la prehistoria
Artes figurativas de la prehistoriaArtes figurativas de la prehistoria
Artes figurativas de la prehistoria
 
La Segunda Guerra Mundial, 1939-1945.
La Segunda Guerra Mundial, 1939-1945.La Segunda Guerra Mundial, 1939-1945.
La Segunda Guerra Mundial, 1939-1945.
 
Repaso Tema 2 Arte Prehistoria
Repaso Tema 2 Arte PrehistoriaRepaso Tema 2 Arte Prehistoria
Repaso Tema 2 Arte Prehistoria
 
Arte Griego I. Introducción histórica. Caracteristicas generales de la arquit...
Arte Griego I. Introducción histórica. Caracteristicas generales de la arquit...Arte Griego I. Introducción histórica. Caracteristicas generales de la arquit...
Arte Griego I. Introducción histórica. Caracteristicas generales de la arquit...
 
Arte griego y romano. Juego.
Arte griego y romano. Juego.Arte griego y romano. Juego.
Arte griego y romano. Juego.
 

Similar to VB Beginner's Guide

Introduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 FundamentalsIntroduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 FundamentalsSanay Kumar
 
Lesson 4 Introduction to Human Computer Interaction.pptx
Lesson 4 Introduction to Human Computer Interaction.pptxLesson 4 Introduction to Human Computer Interaction.pptx
Lesson 4 Introduction to Human Computer Interaction.pptxEllenGracePorras
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.netJaya Kumari
 
Visual Studio 2008 Overview
Visual Studio 2008 OverviewVisual Studio 2008 Overview
Visual Studio 2008 OverviewRoman Okolovich
 
Programming basics
Programming basicsProgramming basics
Programming basicsSenri DLN
 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-eehomeworkping3
 
Class viii ch-7 visual basic 2008
Class  viii ch-7 visual basic 2008Class  viii ch-7 visual basic 2008
Class viii ch-7 visual basic 2008jessandy
 
visual basic 2005 programmer certification
visual basic 2005 programmer certificationvisual basic 2005 programmer certification
visual basic 2005 programmer certificationVskills
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxclassall
 
Unit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUnit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUjwala Junghare
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdfLimEchYrr
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptxLimEchYrr
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxEliasPetros
 
LESSON 1- VISUAL BASIC PROGRAMMING.ppt
LESSON 1- VISUAL BASIC PROGRAMMING.pptLESSON 1- VISUAL BASIC PROGRAMMING.ppt
LESSON 1- VISUAL BASIC PROGRAMMING.pptChristopherOlaya1
 
Membangun Desktop App
Membangun Desktop AppMembangun Desktop App
Membangun Desktop AppFajar Baskoro
 
2-Vb.net Basic Concepts and structure of .net code.pptx
2-Vb.net Basic Concepts and structure of .net code.pptx2-Vb.net Basic Concepts and structure of .net code.pptx
2-Vb.net Basic Concepts and structure of .net code.pptxUsama182938
 
VSTO + LOB Apps Information Matters
VSTO + LOB Apps Information MattersVSTO + LOB Apps Information Matters
VSTO + LOB Apps Information MattersComunidade NetPonto
 

Similar to VB Beginner's Guide (20)

Introduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 FundamentalsIntroduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 Fundamentals
 
Lesson 4 Introduction to Human Computer Interaction.pptx
Lesson 4 Introduction to Human Computer Interaction.pptxLesson 4 Introduction to Human Computer Interaction.pptx
Lesson 4 Introduction to Human Computer Interaction.pptx
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
 
Visual Studio 2008 Overview
Visual Studio 2008 OverviewVisual Studio 2008 Overview
Visual Studio 2008 Overview
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
UNIT I.pptx
UNIT I.pptxUNIT I.pptx
UNIT I.pptx
 
235042632 super-shop-ee
235042632 super-shop-ee235042632 super-shop-ee
235042632 super-shop-ee
 
Class viii ch-7 visual basic 2008
Class  viii ch-7 visual basic 2008Class  viii ch-7 visual basic 2008
Class viii ch-7 visual basic 2008
 
visual basic 2005 programmer certification
visual basic 2005 programmer certificationvisual basic 2005 programmer certification
visual basic 2005 programmer certification
 
Vb lecture
Vb lectureVb lecture
Vb lecture
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 
Unit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUnit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdf
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
 
LESSON 1- VISUAL BASIC PROGRAMMING.ppt
LESSON 1- VISUAL BASIC PROGRAMMING.pptLESSON 1- VISUAL BASIC PROGRAMMING.ppt
LESSON 1- VISUAL BASIC PROGRAMMING.ppt
 
Membangun Desktop App
Membangun Desktop AppMembangun Desktop App
Membangun Desktop App
 
2-Vb.net Basic Concepts and structure of .net code.pptx
2-Vb.net Basic Concepts and structure of .net code.pptx2-Vb.net Basic Concepts and structure of .net code.pptx
2-Vb.net Basic Concepts and structure of .net code.pptx
 
VSTO + LOB Apps Information Matters
VSTO + LOB Apps Information MattersVSTO + LOB Apps Information Matters
VSTO + LOB Apps Information Matters
 

More from Satya Harish

Workday-hrtechnologyconferencedebihirshlagflextronics
Workday-hrtechnologyconferencedebihirshlagflextronicsWorkday-hrtechnologyconferencedebihirshlagflextronics
Workday-hrtechnologyconferencedebihirshlagflextronicsSatya Harish
 
WorkDay-surviving and thriving in a world of change
WorkDay-surviving and thriving in a world of changeWorkDay-surviving and thriving in a world of change
WorkDay-surviving and thriving in a world of changeSatya Harish
 
Book scrum tutorial
Book   scrum tutorialBook   scrum tutorial
Book scrum tutorialSatya Harish
 
O - Oracle application testing suite test starter kits for oracle e business ...
O - Oracle application testing suite test starter kits for oracle e business ...O - Oracle application testing suite test starter kits for oracle e business ...
O - Oracle application testing suite test starter kits for oracle e business ...Satya Harish
 
Book HH - SQL MATERIAL
Book   HH - SQL MATERIALBook   HH - SQL MATERIAL
Book HH - SQL MATERIALSatya Harish
 
Book HH- vb6 preview
Book   HH- vb6 previewBook   HH- vb6 preview
Book HH- vb6 previewSatya Harish
 
G03.2014 Intelligent Business Process Management Suites
G03.2014   Intelligent Business Process Management SuitesG03.2014   Intelligent Business Process Management Suites
G03.2014 Intelligent Business Process Management SuitesSatya Harish
 
G05.2013 Critical Capabilities for SIEM
G05.2013   Critical Capabilities for SIEMG05.2013   Critical Capabilities for SIEM
G05.2013 Critical Capabilities for SIEMSatya Harish
 
G07.2013 Application Security Testing
G07.2013   Application Security TestingG07.2013   Application Security Testing
G07.2013 Application Security TestingSatya Harish
 
G05.2015 Secure Web Gateways
G05.2015   Secure Web GatewaysG05.2015   Secure Web Gateways
G05.2015 Secure Web GatewaysSatya Harish
 
G11.2013 Application Development Life Cycle Management
G11.2013   Application Development Life Cycle ManagementG11.2013   Application Development Life Cycle Management
G11.2013 Application Development Life Cycle ManagementSatya Harish
 
G10.2013 Application Delivery Controllers
G10.2013   Application Delivery ControllersG10.2013   Application Delivery Controllers
G10.2013 Application Delivery ControllersSatya Harish
 
G06.2014 Security Information and Event Management
G06.2014   Security Information and Event ManagementG06.2014   Security Information and Event Management
G06.2014 Security Information and Event ManagementSatya Harish
 
G05.2013 Security Information and Event Management
G05.2013   Security Information and Event ManagementG05.2013   Security Information and Event Management
G05.2013 Security Information and Event ManagementSatya Harish
 
Gartner HH 2015 - 2005 Hype Cycle
Gartner HH   2015 - 2005 Hype CycleGartner HH   2015 - 2005 Hype Cycle
Gartner HH 2015 - 2005 Hype CycleSatya Harish
 
G05.2015 - Magic quadrant for cloud infrastructure as a service
G05.2015 - Magic quadrant for cloud infrastructure as a serviceG05.2015 - Magic quadrant for cloud infrastructure as a service
G05.2015 - Magic quadrant for cloud infrastructure as a serviceSatya Harish
 
G05.2014 - Magic quadrant for cloud infrastructure as a service
G05.2014 - Magic quadrant for cloud infrastructure as a serviceG05.2014 - Magic quadrant for cloud infrastructure as a service
G05.2014 - Magic quadrant for cloud infrastructure as a serviceSatya Harish
 
PERIODIC TABLE OF SEO SUCCESS FACTOR
PERIODIC TABLE OF SEO SUCCESS FACTORPERIODIC TABLE OF SEO SUCCESS FACTOR
PERIODIC TABLE OF SEO SUCCESS FACTORSatya Harish
 
BOOK - IBM tivoli netcool service quality manager data mediation gateway deve...
BOOK - IBM tivoli netcool service quality manager data mediation gateway deve...BOOK - IBM tivoli netcool service quality manager data mediation gateway deve...
BOOK - IBM tivoli netcool service quality manager data mediation gateway deve...Satya Harish
 

More from Satya Harish (20)

Workday-hrtechnologyconferencedebihirshlagflextronics
Workday-hrtechnologyconferencedebihirshlagflextronicsWorkday-hrtechnologyconferencedebihirshlagflextronics
Workday-hrtechnologyconferencedebihirshlagflextronics
 
WorkDay-surviving and thriving in a world of change
WorkDay-surviving and thriving in a world of changeWorkDay-surviving and thriving in a world of change
WorkDay-surviving and thriving in a world of change
 
Book scrum tutorial
Book   scrum tutorialBook   scrum tutorial
Book scrum tutorial
 
O - Oracle application testing suite test starter kits for oracle e business ...
O - Oracle application testing suite test starter kits for oracle e business ...O - Oracle application testing suite test starter kits for oracle e business ...
O - Oracle application testing suite test starter kits for oracle e business ...
 
Qualcomm
QualcommQualcomm
Qualcomm
 
Book HH - SQL MATERIAL
Book   HH - SQL MATERIALBook   HH - SQL MATERIAL
Book HH - SQL MATERIAL
 
Book HH- vb6 preview
Book   HH- vb6 previewBook   HH- vb6 preview
Book HH- vb6 preview
 
G03.2014 Intelligent Business Process Management Suites
G03.2014   Intelligent Business Process Management SuitesG03.2014   Intelligent Business Process Management Suites
G03.2014 Intelligent Business Process Management Suites
 
G05.2013 Critical Capabilities for SIEM
G05.2013   Critical Capabilities for SIEMG05.2013   Critical Capabilities for SIEM
G05.2013 Critical Capabilities for SIEM
 
G07.2013 Application Security Testing
G07.2013   Application Security TestingG07.2013   Application Security Testing
G07.2013 Application Security Testing
 
G05.2015 Secure Web Gateways
G05.2015   Secure Web GatewaysG05.2015   Secure Web Gateways
G05.2015 Secure Web Gateways
 
G11.2013 Application Development Life Cycle Management
G11.2013   Application Development Life Cycle ManagementG11.2013   Application Development Life Cycle Management
G11.2013 Application Development Life Cycle Management
 
G10.2013 Application Delivery Controllers
G10.2013   Application Delivery ControllersG10.2013   Application Delivery Controllers
G10.2013 Application Delivery Controllers
 
G06.2014 Security Information and Event Management
G06.2014   Security Information and Event ManagementG06.2014   Security Information and Event Management
G06.2014 Security Information and Event Management
 
G05.2013 Security Information and Event Management
G05.2013   Security Information and Event ManagementG05.2013   Security Information and Event Management
G05.2013 Security Information and Event Management
 
Gartner HH 2015 - 2005 Hype Cycle
Gartner HH   2015 - 2005 Hype CycleGartner HH   2015 - 2005 Hype Cycle
Gartner HH 2015 - 2005 Hype Cycle
 
G05.2015 - Magic quadrant for cloud infrastructure as a service
G05.2015 - Magic quadrant for cloud infrastructure as a serviceG05.2015 - Magic quadrant for cloud infrastructure as a service
G05.2015 - Magic quadrant for cloud infrastructure as a service
 
G05.2014 - Magic quadrant for cloud infrastructure as a service
G05.2014 - Magic quadrant for cloud infrastructure as a serviceG05.2014 - Magic quadrant for cloud infrastructure as a service
G05.2014 - Magic quadrant for cloud infrastructure as a service
 
PERIODIC TABLE OF SEO SUCCESS FACTOR
PERIODIC TABLE OF SEO SUCCESS FACTORPERIODIC TABLE OF SEO SUCCESS FACTOR
PERIODIC TABLE OF SEO SUCCESS FACTOR
 
BOOK - IBM tivoli netcool service quality manager data mediation gateway deve...
BOOK - IBM tivoli netcool service quality manager data mediation gateway deve...BOOK - IBM tivoli netcool service quality manager data mediation gateway deve...
BOOK - IBM tivoli netcool service quality manager data mediation gateway deve...
 

Recently uploaded

Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 

Recently uploaded (20)

Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 

VB Beginner's Guide

  • 1. I A Complete Tutorial for Beginners LIEW VOON KIONG
  • 2. II Disclaimer Visual Basic 2008 ® Made Easy- A complete tutorial for beginners is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by Microsoft Corporation. Trademarks Microsoft, Visual Basic, Excel and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Liability The purpose of this book is to provide a basic guide for people interested in Visual Basic® programming. Although every effort and care has been taken to make the information as accurate as possible, the author shall not be liable for any error, harm or damage arising from using the instructions given in this book. Copyright ® 2009 Liew Voon Kiong All rights reserved. No Part of this e-book may be reproduced, in any form or by any means, without permission in writing from the author.
  • 3. III Acknowledgement I would like to express my sincere gratitude to many people who have made their contributions in one way or another to the successful publication of this book. My special thanks go to my children Xiang, Yi and Xun. My daughter Xiang edited this book while my sons Yi and Xun contributed their ideas and even wrote some of the sample programs for this book. I would also like to appreciate the support provided by my beloved wife Kim Huang and my youngest daughter Yuan. I would also like to thank the million of visitors to my Visual Basic Tutorial website at www.vbtutor.net, especially those who contributed their comments, for their support and encouragement. About the Author Dr. Liew Voon Kiong holds a bachelor degree in Mathematics, a master degree in Management and a doctoral degree in Business Administration. He has been involved in programming for more than 15 years. He created the popular online Visual Basic Tutorial at www.vbtutor.net in 1996 and since then the web site has attracted millions of visitors and it is one of the top searched Visual Basic Tutorial websites in many search engines including Google. In order to provide more support for the Visual Basic hobbyists, he has written this book based on the Visual Basic tutorial. He is also the author of Visual Basic 6 Made Easy, Visual Basic 2010 Made Easy and Excel VBA Made Easy.
  • 4. IV TABLE OF CONTENTS Chapter 1 Introduction to Visual Basic 2008 1.1 A brief description of Visual Basic 2008 1.2 The Visual Basic 2008 Integrated Development Environment 1 1 2 Chapter 2 Working with Controls 2.1 Using Text Box 2.2 Using List Box 6 7 7 Chapter 3 Working with Control Properties 3.1 Setting Control Properties in Properties Window 3.2 Setting Control Properties Using Code 9 9 10 Chapter 4 Object Oriented Programming 4.1 Encapsulation 4.2 Inheritance 4.3 Polymorphism 12 12 12 13 Chapter 5 Writing the Code 5.1 The Event Procedure 5.2 Writing the Code 16 16 17 Chapter 6 Managing VB2008 Data 6.1 Visual Basic 2008 Data Types 6.1.1 Numeric Data Types 6.1.2 Non-numeric Data Types 6.1.3 Suffixes for Literals 6.2 Managing Variables 6.2.1 Variable Names 6.2.2 Declaring Variables 6.2.3 Assigning Values to Variables 6.3 Constants 6.3.1 Declaring a Constant 20 20 20 21 21 22 22 23 24 25 25
  • 5. V Chapter 7 Mathematical Operations 7.1 Basic Arithmetic Operations 7.2 Pythagoras Theorem 7.3 BMI Calculator 26 26 27 28 Chapter 8 String Manipulation 8.1 String Manipulation Using + and & signs. 8.2 String Manipulation Using VB2008 Built-in Functions 8.2.1 The Len Function 8.2.2 The Right Function 8.2.3 The Left Function 30 30 32 32 33 35 Chapter 9 Controlling Program Flow 9.1 Conditional Operators 9.2 Logical Operators 9.3 Using If control structure with Comparison Operators 9.3.1 If...Then Statement 9.3.2 If....Then...Else Statement 9.3.3 If....Then...ElseIf Statement 35 36 37 37 37 38 40 Chapter 10 Select Case Control Structure 10.1 The Select Case...End Select Structure 41 41 Chapter 11 Looping 11.1 For...Next Loop 11.2 Do Loop 11.3 While...End While Loop 43 43 46 47 Chapter 12 Functions 12.1 MsgBox( ) Function 12.2 The InputBox( ) Function 47 48 51 Chapter 13 String Functions 13.1 The Mid Function 13.2 The Right Function 13.3 The Left Function 13.4 The Trim Function 53 53 54 55 56
  • 6. VI 13.5 The Ltrim Function 13.6 The Rtrim Function 13.7 The InStr function 13.8 The Ucase and the Lcase Functions 13.8 The Chr and the Asc functions 57 57 57 58 58 Chapter 14 Mathematical Functions 14.1 The Abs function 14.2 The Exp function 14.3 The Fix Function 14.4 The Int Function 14.5 The Log Function 14.6 The Rnd( ) Function 14.7 The Round Function 59 59 59 60 61 61 61 62 Chapter 15 Formatting Functions 15.1 Predefined Format Function 15.2 User-Defined Function 63 63 64 Chapter 16 Formatting Date and Time 16.1 Formatting Date and time using predefined formats 16.2 Formatting Date and time using user-defined formats 67 67 68 Chapter 17 Using the Check Box 70 Chapter 18 Using the Radio Button 76 Chapter 19 Creating a Simple Web Browser 80 Chapter 20 Errors Handling 20.1 Introduction 20.2 Using On Error GoTo Syntax 20.3 Errors Handling using Try.....Catch....End Try Structure 83 83 83 85 Chapter 21 Reading and write Files 21.1 Introduction 21.2 Reading a Text File 21.3 Writing to a Text File 87 87 87 91
  • 7. VII Chapter 22 Creating and Managing Graphics 22.1 Introduction 22.2 Creating the Graphics Object 22.3 Creating a Pen 22.4 Drawing a Line 22.5 Creating Rectangles 22.6 Customizing Line Style of the Pen Object 22.7 Drawing Ellipse 22.8 Drawing a Circle 22.9 Drawing Text 22.10 Drawing Polygons 22.11 Drawing a Pie 22.12 Drawing and Filling an Ellipse 22.13 Drawing and Filling a Polygon 22.14 Drawing and Filling a Pie 94 94 94 95 96 97 99 100 102 103 105 108 110 111 112 Chapter 23 Packaging Applications for Distribution 23.1 Creating the Setup Program using Publish Wizard 23.2 Testing your Install Program 113 113 118
  • 8. 8 Chapter 1 Introduction to Visual Basic 2008 A brief description of Visual Basic 2008 Getting to know the Visual Basic 2008 Integrated Development Environment 1.1 A brief description of Visual Basic 2008 Visual Basic 2008 is the latest version of Visual Basic launched by Microsoft in the year 2008. It is almost similar to Visual Basic 2005 and but it has added many new features. Visual Basic has gone through many phases of development since the days of BASIC that was built for DOS . BASIC stands for Beginners' All-purpose Symbolic Instruction Code. The program code in Visual Basic resembles the English language. Different software companies had produced many different versions of BASIC for DOS, such as Microsoft QBASIC, QUICKBASIC, GWBASIC, and IBM BASICA and more. Then, Microsoft launched the first graphical BASIC which was known as Visual Basic Version1 in 1991. It is GUI based and especially developed for MS window. Since then the DOS versions of BASIC were slowly phased out and almost completely replaced by Visual Basic. Visual Basic was initially a functional or procedural programming language until the popular Visual Basic 6. Then, Microsoft decided to make Visual Basic into more powerful object oriented programming language, Visual Basic 2005 was launched with that purpose in mind. Visual Basic 2005 is an object oriented programming language and it was to be taken over by Visual Basic 2008. Visual Basic 2008 is a full-fledged Object-Oriented Programming (OOP) Language, so it has caught up with other OOP languages such as C++, Java, C# and others. However, you don't have to know OOP to learn VB2008. In fact, if you are familiar with Visual Basic 6, you can learn VB2008 effortlessly
  • 9. 9 because the syntax and interface are almost similar. Visual Basic 2008 Express Edition is available free for download from the Microsoft site. 1.2 The Visual Basic 2008 Integrated Development Environment When you launch VB2008 Express, the Integrated Development Environment will be presented to you, as shown in Figure 1-1. Figure 1-1: The VB2008 IDE The IDE consists of a few panes, namely: • The Recent Projects Pane- it shows the list of projects that have been created by you recently. • The Getting Started Pane- It provides some helpful tips to quickly develop your applications • The VB Express Headlines pane- It provides latest online news about Visual Basic 2008 Express. It will announce new releases and updates.
  • 10. 10 To start creating your first application, you need to click on File on the menu bar and select New Project. The VB2008 New Project dialog box will appear, as shown in Figure 1-2 Figure 1-2: VB2008 New Project Dialog Box The dialog box offers you five types of projects that you can create. As we are going to create a Windows application, we will select Windows Forms Application. At the bottom of this dialog box, you can change the default project name WindowsApplication1 to some other name you like, for example, MyFirstProgram. After you have renamed the project, click OK to continue. The VB2008 IDE with a new Form will appear, as shown in Figure 1-3. It consists of an empty form, the common controls toolbox, the solution explorer and the Properties Window.
  • 11. 11 Figure 1-3: VB2008 IDE with A New Form Now let’s create your first program. First of all, drag one common button into the form and change its default name to calculate, as shown in Figure 1-4. Figure 1-4 The design Interface Next, click on the calculate button and enter the following code at the source code window as shown in Figure 1-5.
  • 12. 12 Private Sub Button1_Click (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim num1, num2, sum As Single num1 = 100 num2 = 200 sum = num1 + num2 MsgBox (" The Sum of” & num1 & " and “& num2 & “is " & sum) End Sub Now run your first application! And you can see the follow message box showing the sum of two numbers. Figure 1-5: The Code window
  • 13. 13 Figure 1-6: The Output Window Chapter 2 Working with Controls Getting to know Visual Basic 2008 controls Getting to know the Control Properties.
  • 14. 14 The Visual Basic 2008 Common Control Toolbox consists of all the controls essential for developing a VISUAL BASIC 2008 application. Controls in VB2008 are useful tools that can be placed in the form to perform various tasks. They are used to create many kinds of Windows applications. The diagram on the right is the Toolbox that contains the controls of VB2008. They are categorized into Common Controls, Containers, Menus, Toolbars, Data, Components, Printings and Dialogs. At the moment, we will focus on the common controls. Some of the most used common controls are Button, Label, ComboBox, ListBox, PictureBox, TextBox and more, as shown in Figure 2-1 Figure 2-1 To insert a control into your form, you just need to drag the control and drop it into the form. You can reposition and resize it as you like. Let’s examine a few programs that made use of Button, Label, TextBox, ListBox and PictureBox. You don't have to worry so much about the code because I will explain the program syntax as you progress to later Chapters. 2.1 Using Text Box In this program, you insert two textboxes, three labels and one button. The two textboxes are for the users to enter two numbers, one label is to display the multiplication operator and the other label is to display the equal sign. The
  • 15. 15 last label is to display the answer. The run time interface is shown in Figure 2- 2 Figure 2-2 The Multiplication Program The Code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim num1, num2, product As Single num1 = TextBox1.Text num2 = TextBox2.Text product = num1 * num2 Label3.Text = product End Sub 2.2 Using List Box This program will add one item at a time as the user enters an item into the TextBox and click the Add button. In this program, you insert a TextBox and a ListBox into the Form. The function of the TextBox is to let the user enter an item one at a time and add it to the Listbox. The method to add an item to the ListBox is Add. The output interface is shown in Figure 2-3.
  • 16. 16 Figure 2-3: The Add Items Program The Code Class Frm1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim item As String item = TextBox1.Text 'To add items to a listbox ListBox1.Items.Add(item) End Sub End Class
  • 17. 17 Chapter 3 Working with Control Properties Setting the properties of the controls 3.1 Setting Control Properties in the Properties Window Before writing an event procedure for the control to response to a user's input, you have to set certain properties for the control to customize its appearance and the way it will work with the event procedure. You can set the properties of the controls in the properties window at design time or you can set the properties using code
  • 18. 18 Figure 3-1 on the right is a typical properties window for a form. The title of the form is defined by the Text property and its default name is Form 1. To change the form's title to any name that you like, simple click in the box on the right of the Text property and type in the new name, in this example, the title is Multiplication. Notice that this title will appear on top of the windows. In the properties window, the item appears at the top part is the object currently selected (in Figure 3.1, the object selected is Form1). At the bottom part, the items listed in the left column represent the names of various properties associated with the selected object while the items listed in the right column represent the states of the properties. Properties can be set by highlighting the items in the right column then change them by typing or selecting Figure 3-1: The Properties Window the options available. You may also alter other properties of the form such as font, location, size, foreground color, background color, MaximizeBox, MinimizeBox and more. For example, when you select background color, the dialog box for color selection will appear, as shown in Figure 3-2. You can then select any color by clicking on one of the colors.
  • 19. 19 Figure 3-2: Color Selection 3.2 Setting Control Properties using Code You can also change the properties of the object at run time to give special effects such as change of color, change of shape, animation effect and more. For example the following code will change the form color to yellow every time the form is loaded. VB2008 uses RGB(Red, Green, Blue) to determine the colors. The RGB code for yellow is 255,255,0. Me in the code refer to the current form and Backcolor is the property of the form's background color. The formula to assign the RGB color to the form is Color.FormArbg(RGB code). Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.BackColor = Color.FromArgb(255, 255, 0) End Sub
  • 20. 20 You may also use the follow procedure to assign the color at run time. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.BackColor = Color.Yellow End Sub Both procedures above will load the form with a yellow background, as shown in Figure 3-3 Figure 3-3: The form with yellow background Here are some of the common colors and the corresponding RGB codes. You can always experiment with other combinations, but remember the maximum number for each color is 255 and the minimum number is 0. The table below shows some of the common colors with their corresponding codes. Table 3-1: Some common colors and their corresponding RGB codes. The following is a program that allows the user to enter the RGB codes into three different Textboxes and when he/she clicks the display color button, the background color of the form changes according to the RGB code. So, this program allows the user to change the color properties of the form at run time. The code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  • 21. 21 Dim rgb1, rgb2, rgb3 As Integer rgb1 = TextBox1.Text rgb2 = TextBox2.Text rgb3 = TextBox3.Text Me.BackColor = Color.FromArgb(rgb1, rgb2, rgb3) End Sub The output interface is shown in Figure 3-4 Figure 3-4: The RGB Program