SlideShare uma empresa Scribd logo
1 de 159
Baixar para ler offline
1CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
INTRODUCTION TO
Visual Basic 6.0
Instructor: Anjan Mahanta
GUI Programming
2201-2412
2CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Course Outline
 Introduction to VB
 Analyzing VB Programs
 Controls & Properties
 Examining Labels, Buttons & Text Boxes
 Putting Code into Visual Basic
 Message & Input Boxes
 Making Decisions
 VB Looping
 List Boxes & Data Lists
 Additional Controls
 Modular Programming
 Built-In Functions
 VB Database Basics
 Menus & VB
 The Graphics Image Controls
 Toolbars & More Graphics
 Database Connectivity & Programming
3CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Introduction to Visual Basic 6.0
 What is Visual Basic?
Creates Graphic User Interface (GUI)
Creates applications for the Microsoft Windows OS
Major components:
1. Forms
2. Controls
3. Commands
4. Objects
4CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
History of Visual Basic
• Alan Cooper developed Visual Basic in 1988 and
sold to Microsoft
• VB1 Debuts at Windows World in March 20,1991
• VB2 Debuts in November 1992
• VB3 Debuts in June 1993
• VB4 Debuts in October 1996
• VB5 Debuts in April 1997
• VB6 Debuts in October 1998
5CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Introduction to Visual Basic 6.0
 What programming language is Visual Basic
based on?
BASIC (stands for Beginner’s All Purpose
Symbolic Introduction Code)
6CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Starting Visual Basic 6.0
• Click on Start
• Select Programs
• Select Microsoft Visual Studio 6.0
• Click on Microsoft Visual Basic 6.0
• Click on Open
7CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Visual Basic 6.0 Programming Window
8CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Introduction to Visual Basic 6.0
 What is a Form Window?
The form window holds the application’s
form background and all its user controls,
such as command buttons.
 What is a Toolbox?
The toolbox contains the controls that you
place on the Form Window. All the controls
appear on the toolbox.
9CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Creating Your First Application
• Design your form as below:
Text
BoxCommand Button
Command Button
Label
Text Box
10CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Writing the program
• Double click on the command button ADD
11CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
• Enter the following code
Label5= val(text1) + val(text2)
To display answer Number 2
Number 1
Value
Writing the program
12CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
• Enter number 1 (any number)
• Enter number 2 (any number)
Click on ADD
Running the program
13CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
• Click on ADD Command button
Running the program
14CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Calculator
15CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Controls in the Toolbox
• Label
– A label control is used to display text that a user can’t
change directly.
• Textbox
– A textbox control is used to input data from the user at run
time.
• Command button
– A command button is used to perform an event at run time.
16CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Addition of three numbers
17CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Area of a Triangle
18CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on AREA
• Type,
Private Sub Command2_Click()
Text 3 = 0.5 * val(Text1) * Val(Text2)
End Sub
19CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Area of Circle
20CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on AREA
• Type,
Private Sub Command2_Click()
Text2 = 3.14 * (Val(Text1) ^2)
End Sub
21CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Discount
22CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Discount
• Type,
Private Sub Command2_Click()
Text3 = Val (Text1) * (Val(text2) / 100)
End Sub
23CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Total
• Type,
Private Sub Command3_Click()
Text4 = Val(Text1) - Val(Text3)
End Sub
24CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Exercise
25CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
IF …..Then…..Else
Statement
• If...Then...Else statement is used for
controlling the program flow.
• To control the VB program flow, we
can use various conditional operators
and logical operators.
26CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Conditional Operators
Operator Meaning
= Equal to
> Greater than
< Less Than
< > Not Equal to
• The conditional operators compares data
values and then decide what action to take.
27CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Examples
A=10, B=15
Operations Result
Is A=B ?
FALSE / NO
Is A>B ?
FALSE / NO
Is A<B ?
TRUE / YES
Is A< >B ?
TRUE / YES
28CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Logical Operators
AND: Both sides must be true
Side A Side B Result
TRUE TRUE ?
TRUE
TRUE FALSE ?
FALSE
29CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Logical Operators
OR: One side or other must be true
Side A Side B Result
TRUE TRUE ?
TRUE
FALSE TRUE ?
TRUE
FALSE FALSE ?
FALSE
30CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
The general format for the if...then...else statement is
If conditions Then
VB expressions
Else
VB expressions
End If
31CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Program for next class..
Design Mode
Text Box
Command Button
32CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Run Mode
• When the program is Run, if the
user enters value greater than 8.
33CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Run Mode
• When the program is Run, if the
user enters value less than 8.
34CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Coding..
• Double Click on OK
Private Sub Command1_Click()
If Text1 > 8 Then
MsgBox (“You are late !!”)
Else
MsgBox (“You are not late !!”)
End If
End Sub
35CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Form Color
Option1 Option3 Option5
Option2 Option4 Option6
36CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option1
Private Sub Option1_Click()
If Option1.Enabled = True Then
Form1.BackColor = vbRed
End If
End Sub
37CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option2
Private Sub Option2_Click()
If Option2.Enabled = True Then
Form1.BackColor = vbBlue
End If
End Sub
38CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option3
Private Sub Option3_Click()
If Option3.Enabled = True Then
Form1.BackColor = vbWhite
End If
End Sub
39CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option4
Private Sub Option4_Click()
If Option4.Enabled = True Then
Form1.BackColor = vbBlack
End If
End Sub
40CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option5
Private Sub Option5_Click()
If Option5.Enabled = True Then
Form1.BackColor = vbYellow
End If
End Sub
41CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option6
Private Sub Option6_Click()
If Option6.Enabled = True Then
Form1.BackColor = vbGreen
End If
End Sub
42CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Form Font
Label1
Option 2
Option 3
Option 4
Option 5
Option 6
Option 1
43CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option1
Private Sub Option1_Click()
If Option1.Enabled = True Then
Label1.FontBold = True
End If
End Sub
44CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option2
Private Sub Option2_Click()
If Option2.Enabled = True Then
Label1.FontItalic = True
End If
End Sub
45CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option3
Private Sub Option3_Click()
If Option3.Enabled = True Then
Label1.FontUnderline = True
End If
End Sub
46CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option4
Private Sub Option4_Click()
If Option4.Enabled = True Then
Label1.FontSize = 10
End If
End Sub
47CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option5
Private Sub Option5_Click()
If Option5.Enabled = True Then
Label1.FontSize = 20
End If
End Sub
48CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Option6
Private Sub Option6_Click()
If Option6.Enabled = True Then
Label1.FontSize = 30
End If
End Sub
49CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Visual Basic Fundamentals
• Numeric constants: integer, long integers, single -
precision real (or floating point), double-precision real (or
floating point)
• String constants
• Variables
– Name must begin with a letter, letters and numbers
can be included, as well as underline character ( _ )
– Data-typing characters ( %, &, !, #, $) are not
permitted
– Maximum length of name = 255characters
50CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Data types and data declaration
• Data types supported: Integer, Long,
Single, Double, String, Boolean, Byte,
Currency, Date
• Data declaration uses the Dim statement
Dim variable_name_1 As data_type_1,
variable_name_2 As data_type_2, etc.
Example:
Dim firstname as string
51CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Branching and Looping
• Relational operators and logical expressions
– Relational operators: = , < > , < , <= , > , >=
– Logical expressions, e.g., a > b, c = d + 2, x >= y,
can be either true or false
52CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
If ..Then..Else..Endif Statement
If logical_expression Then
. . . . .
executable statements
. . . . .
Else
. . . . .
executable statements
. . . . .
End If
53CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Select Case Statement
Select Case expression
Case value1
executable statements
Case value2
executable statements
. . . . . . .
Case Else
executable statements
End Select
54CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
For - Next Looping
For index = value1 To value2
. . . . . . .
executable statements
. . . . . . .
Next index
55CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Do - While Looping
Do While logical expression
. . . . . . . . . .
executable statements
. . . . . . . . . .
Loop
56CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
VB Control Fundamentals
• Visual Basic control tools
* Check box
* Combo box
* Command Button
* Data
* Directory List Box
* Drive List Box
* File List Box
* Frame
* Horizontal Scroll Bar
57CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
VB Control Fundamentals
• Visual Basic control tools
* Image Box
* Label
* Line
* List Box
* OLE Container
* Option Button
* Picture Box
* Pointer
* Shape
* Text Box
* Timer
* Vertical Scroll Bar
58CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
VB Control Fundamentals
• Control tool categories
Entering Text Drawing
Text Box Line Button
Combo Box Shape Button
59CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
VB Control Fundamentals
• Control tool categories
Displaying Text Selecting Among Alternatives
Label Check Box
Text Box Option Button
List Box Frame
Combo Box List Box
60CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
VB Control Fundamentals
• Control tool categories
Displaying Graphics Viewing Windows
Image Box Frame
Picture Box Horizontal Scroll Bar
Frame Vertical Scroll Bar
61CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
VB Control Fundamentals
• Control tool categories
Managing Files Accessing Existing Data
File List Box Data
Drive List Box
Directory List Box
62CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
VB Control Fundamentals
• Control tool categories
Initiating Events Linking with Other Objects
Command Button OLE
Executing Timed Events
Timer
63CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
MsgBox
• Message boxes are used when you want to ask the
user a question or display an error message(s) and
advise the user
• There are six types of message boxes -
– vbOKonly
– vbOKCancel
– vbAbortRetryIgnore
– vbYesNoCancel
– vbYesNo
– vbRetryCancel
64CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
MsgBox
• Syntax
Msgbox “TEXT”, VALUE, “TITLE”
• Example 1
Msgbox “Sorry !!”, vbcritical, “Error”
• Example 2
Msgbox “Correct Password”, vbinformation, “Check”
65CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Message box Example 1
• Design the following form
Label
Text Box Command Button
66CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on OK
Private Sub Command1_Click()
MsgBox “Hello!!” + Text1
End Sub
67CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Program Output
68CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Message box Example 2
• Add a new form – FORM 2
• Click on Project in the Menu bar
• Click on Add Form
69CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Program Output
70CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Solution
• Double Click on OK
Private Sub Command1_Click()
MsgBox Text1 + “ Loves ” + Text2
End Sub
71CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Message box Example 3
• Design the following form
72CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Program Output
73CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on OK
Private Sub Command1_Click()
MsgBox Text1 + “ ” + Text3 + “ ” + Text2
End Sub
74CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
If..Then..Elseif..Else..Endif Statement
If logical_expression Then
. . . . .
executable statements
. . . . .
ElseIf logical_expression Then
. . . . .
executable statements
. . . . .
various ElseIf clauses
. . . . .
Else
. . . . .
executable statements
. . . . .
End If
75CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Example1 - List Box
• Design the following form
List Box
76CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on form1
Private Sub Form_Load()
List1.AddItem “……”
List1.AddItem “Red”
List1.AddItem “Yellow”
List1.AddItem “Green”
List1.AddItem “Blue”
End Sub
77CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on List1
Private Sub List1_Click()
If List1 = “Red” Then
Form1.BackColor = vbRed
ElseIf List1 = “Yellow” Then
Form1.BackColor = vbYellow
ElseIf List1 = “Green” Then
Form1.BackColor = vbGreen
ElseIf List1 = “Blue” Then
Form1.BackColor = vbBlue
Else
Form1.BackColor = vbWhite
End If
End Sub
78CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Example 2: Grade Calculation
• Design the form2
79CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command Button Total
Private Sub Command1_Click()
Text5 = Val(Text3) + Val(Text4)
End Sub
80CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code• Double click on Command Button Grade
Private Sub Command2_Click()
If Val(Text5) >= 80 And Val(Text5) <= 100 Then
Text6 = “A”
ElseIf Val(Text5) >= 60 And Val(Text5) <= 79 Then
Text6 = “B”
ElseIf Val(Text5) >= 40 And Val(Text5) <= 59 Then
Text6 = “C”
ElseIf Val(Text5) >= 0 And Val(Text5) <= 39Then
Text6 = “F”
Else
Text6 = “ ”
MsgBox “Error!!”
End If
End Sub
81CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command Button Clear
Private Sub Command3_Click()
Text1 = Clear
Text2 = Clear
Text3 = Clear
Text4 = Clear
Text5 = Clear
Text6 = Clear
End Sub
82CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command Button Exit
Private Sub Command4_Click()
End
End Sub
83CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Form1 - frmmain
84CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Double click on confirm
Private Sub Command1_Click()
If Option1 = True Then
frmoneway.Show
frmmain.Hide
ElseIf Option2 = True Then
frmroundtrip.Show
frmmain.Hide
Else
MsgBox "Please select a trip"
End If
End Sub
85CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Double click on cancel
Private Sub Command2_Click()
MsgBox “Thankyou!!”
End
End Sub
86CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Form2 - frmoneway
87CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Double click on frmoneway
Private Sub Form_Load()
Label2 = Date
Label3 = Time
Combo1.AddItem “F101”
Combo1.AddItem “F102”
Combo1.AddItem “F103”
End Sub
88CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Double click on Combo1_Click
Private Sub Combo1_Click()
If Combo1 = “F101” Then
Text1 = “Bangkok”
Text2 = “Chiangmai”
Text3 = 1000
Text4 = 200
Text5 = Val(Text3) + Val(Text4)
ElseIf Combo1 = “F102” Then
Text1 = “Chiangmai”
Text2 = “Bangkok”
Text3 = 1000
Text4 = 200
Text5 = Val(Text3) + Val(Text4)
89CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Double click on Combo1_Click
ElseIf Combo1 = “F103” Then
Text1 = “Bangkok”
Text2 = “Phuket”
Text3 = 1500
Text4 = 200
Text5 = Val(Text3) + Val(Text4)
Else
MsgBox "Please select your flight no"
End If
End Sub
90CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Double click on confirm
Private Sub Command1_Click()
MsgBox “Thankyou!! Enjoy your trip”
End
End Sub
91CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Double click on cancel
Private Sub Command1_Click()
unload me
frmmain.show
End Sub
92CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Form 3: frmroundtrip
93CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
If..Then..Elseif..Else..Endif
Exercise
94CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Grade Criteria
Total Grade
90-100 A+
80-89 A
70-79 B+
60-69 B
50-59 C+
40-49 C
0-39 F
>100 or < 0 Error!!
95CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Solution
• Double click on Command1 Grade
Private Sub Command1_Click()
If Val(Text2) >= 90 And Val(Text2) <= 100 Then
Text3 = “A+”
ElseIf Val(Text2) >= 80 And Val(Text2) <= 89 Then
Text3 = “A”
ElseIf Val(Text2) >= 70 And Val(Text2) <=79 Then
Text3 = “B+”
ElseIf Val(Text2) >= 60 And Val(Text2) <= 69 Then
Text3 = “B”
ElseIf Val(Text2) >= 50 And Val(Text2) <= 59 Then
Text3 = “C+”
ElseIf Val(Text2) >= 40 And Val(Text2) <= 49 Then
Text3 = “C”
ElseIf Val(Text2) >= 0 And Val(Text2) <= 39 Then
Text3 = “F”
Else
Text3 = “Error!!”
End If
End Sub
96CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Example Timer
• Design the following form
Label
Timer
97CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Property of Timer1
• In the property of Timer1
Interval 600
98CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code for Timer1
• Double click on Timer1
Private Sub Timer1_Timer()
If Label1.Visible = True Then
Label1.Visible = False
Else
Label1.Visible = True
End If
End Sub
99CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Example 2
• Determine the greater number
100CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
On Run mode
101CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Click GO
102CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Solution
• Double click on Command1 GO
If Val(Text1) > Val(Text2) Then
MsgBox “B is smaller, B= ” + Text2
Else
MsgBox “A is smaller, A= ” + Text1
End If
103CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Password validation
• Design the following form
Label
Text Box
Command
Button
104CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command Button1 Login
Private Sub Command1_Click()
Dim password As String
password = “lcct”
If Text1 = password Then
password = MsgBox(“You have passsed security!!”, vbOKOnly +
vbExclamation, “Access Granted”)
Else
password = MsgBox (“Incorrect Password!!”, vbRetryCancel +
vbCritical, “Access Denied”)
If password = vbRetry Then
Text1 = ""
Text1.SetFocus
End If
End If
End Sub
105CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Select Case
• The Select Case structure tests whether the value
of an expression falls within predetermined ranges.
• Syntax
Select Case expression
Case testlist
{instructions}
Case testlist
{instructions}
:
Case else
{instructions}
End Select
106CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Example: Program to enter your age
Text Box
107CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
• Double click on
Dim age as Integer
age=text1
Select case age
case 1 to 12
Msgbox (“Child”)
case 13 to 19
Msgbox (“Teenager”)
case is > 19
Msgbox (“Adult”)
case else
Msgbox (“Impossible”)
End select
OK
108CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Example: Program to insert any string
109CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Program Explanation
• Use Select Case to do the program
• When the user enters blank string
– Display Message box “Null / Blank String”
• When the user enters a or e or I or o or u
– Display Message box “Vowel”
• When the user enters a to z
– Display Message box “Consonant”
• When the user enters 0 to 9
– Display Message box “Numeric Digit”
• When the user enters any other characters
such as $ or @ or *
– Display Message box “Special Character”
110CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
• Double click on
Dim str As String
str = Text1
Select Case Left(str, 1)
Case “”
MsgBox (“Null String”)
Case “A”, “E”, “I”, “O”, “U”, “a”, “e”, “i”, “o”, “u”
MsgBox (“Vowel”)
Case “A” To “Z”, “a” To “z”
MsgBox “Consonant”
Case “0” To “9”
MsgBox “Numeric Digit”
Case Else
MsgBox “Special Character”
End Select
OK
111CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Hotel Example
112CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Private Sub Command1_Click()
Select Case Combo1
Case “Single”
Text1 = (Val(Text2) * 500) & “ Baht ”
Case “Single A/C”
Text1 = (Val(Text2) * 1000) & “ Baht ”
Case “Double”
Text1 = (Val(Text2) * 800) & “ Baht ”
Case “Double A/C”
Text1 = (Val(Text2) * 1500) & “ Baht ”
Case “HoneyMoon Suite”
Text1 = (Val(Text2) * 2000) & “ Baht ”
End Select
End Sub
113CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Select case - Example
114CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Form
Private Sub Form_Load()
Combo1.AddItem "English"
Combo1.AddItem "Thai"
Combo1.AddItem "Japanese"
Combo1.AddItem "Chinese"
Combo1.AddItem "India"
End Sub
115CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Combo1
Private Sub Combo1_Click()
Select Case Combo1
Case "English"
Text1 = "Hello"
Case "Thai"
Text1 = "Suwadee"
Case "Japanese"
Text1 = "Konichiwa"
Case "Chinese"
Text1 = "Nihaw"
Case "India"
Text1 = "Namaste"
End Select
End Sub
116CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Option Button & Frames - Example
Frame
Option Button
Label
117CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
Private Sub Option1_Click()
Label1.FontBold = True
End Sub
Private Sub Option2_Click()
Label1.FontBold = False
End Sub
Private Sub Option3_Click()
Label1.FontItalic = True
End Sub
Private Sub Option4_Click()
Label1.FontItalic = False
End Sub
Private Sub Option5_Click()
Label1.FontUnderline = True
End Sub
Private Sub Option6_Click()
Label1.FontUnderline = False
End Sub
118CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
Private Sub Option7_Click()
Label1.FontSize = 10
End Sub
Private Sub Option8_Click()
Label1.FontSize = 15
End Sub
Private Sub Option9_Click()
Label1.FontSize = 20
End Sub
119CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
Private Sub Option10_Click()
Label1.ForeColor = vbBlue
End Sub
Private Sub Option11_Click()
Label1.ForeColor = vbRed
End Sub
Private Sub Option12_Click()
Label1.ForeColor = vbYellow
End Sub
Private Sub Option13_Click()
Label1.ForeColor = vbGreen
End Sub
120CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Quiz Example
• Design the following form
121CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Score, Command Button1
Private Sub Command1_Click()
Dim answer As Integer
If Option2.Value = True Then
answer = answer + 1
End If
If Option4.Value = True Then
answer = answer + 1
End If
If Option8.Value = True Then
answer = answer + 1
End If
If answer = 3Then
MsgBox “You scored 3”
ElseIf answer = 2 Then
MsgBox “You scored 2”
ElseIf answer = 1 Then
MsgBox “You scored 1”
ElseIf answer = 0 Then
MsgBox “You scored 0”
End If
End Sub
122CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
For Loop Example
• Design the following form
Combo Box
123CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command Button 1 Add Number
Private Sub Command1_Click()
Combo1.AddItem Text1
Text1 = ""
Text1.SetFocus
End Sub
• Double click on Command Button 2 Count
Private Sub Command2_Click()
MsgBox “Total items = ” & Combo1.ListCount
End Sub
124CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command Button 3 Maximum
Private Sub Command3_Click()
Dim Max As Integer
Dim i As Integer
Max = 0
For i = 0 To Combo1.ListCount - 1
If Combo1.List(i) > Max Then
Max = Combo1.List(i)
End If
Next i
MsgBox “Maximum Number = ” & Max
End Sub
125CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command Button 4 Minimum
Private Sub Command4_Click()
Dim Min As Integer
Dim i As Integer
Min = 100
For i = 0 To Combo1.ListCount - 1
If Combo1.List(i) < Min Then
Min = Combo1.List(i)
End If
Next i
MsgBox “Minimum Number = ” & Min
End Sub
126CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command Button 5 Sum
Private Sub Command5_Click()
Dim sum, i As Integer
For i = 0 To Combo1.ListCount - 1
sum = sum + Val(Combo1.List(i))
Next i
MsgBox “Sum=” & sum
End Sub
127CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command Button 6 Average
Private Sub Command6_Click()
Dim average, sum, i As Integer
For i = 0 To Combo1.ListCount - 1
sum = sum + Val(Combo1.List(i))
Next i
average = Val(sum) / Combo1.ListCount
MsgBox “Average = ” & average
End Sub
128CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Designing a Menu Bar
• What is a Menu Bar ?
– A menu bar is used to display a list of items from where
an user can select any one item.
129CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Example: Menu Bar
• Click on the Menu Editor in the Tool Bar
• In the caption, type File
• In the name, type mnufile
• Click OK
• Run
130CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Menu Editor
Menu Caption
Menu Name
Menu Shortcut Key
To add new menu
To insert new menu
Directions
(Left, Right, Up, Down)
To delete menu
131CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Designing a Sub_Menu
• Click on Menu Editor in Toolbar.
• In Caption, type File
• In Name, type mnuFile
• Click on Next
• Click on Right Arrow Button
• In Caption, type Open
• In Name, type mnuOpen
• In ShortCut Key, Ctrl+O
• Click on Next
• In Caption, type -
• In Name, type mnublank1
• Click on Next
• In Caption, type New
• In Name, type mnuNew
• In ShortCut Key, Ctrl+N
132CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Designing a Multiple menu
• Click on Menu Editor in Toolbar.
• In Caption, type File
• In Name, type mnuFile
• Click on Next
• Click on Right Arrow Button
• In Caption, type Open
• In Name, type mnuOpen
• In ShortCut Key, Ctrl+O
• Click on Next
• In Caption, type -
• In Name, type mnublank1
• Click on Next
• In Caption, type New
• In Name, type mnuNew
• In ShortCut Key, Ctrl+N
133CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Designing the EDIT Menu
• Click on Menu Editor in Toolbar.
• Click on Left Arrow Button
• In Caption, type Edit
• In Name, type mnuEdit
• Click on Next
• Click on Right Arrow Button
• In Caption, type Copy
• In Name, type mnuCopy
• In ShortCut Key, Ctrl+C
• Click on Next
• In Caption, type -
• In Name, type mnublank2
• Click on Next
• In Caption, type Cut
• In Name, type mnuCut
• In ShortCut Key,
Ctrl+X
• Click on Next
• In Caption, type -
• In Name, type mnublank3
• Click on Next
• In Caption, type Paste
• In Name, type mnuPaste
• In ShortCut Key,
Ctrl+V
134CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Using the Data Control to
Interact with Databases
• The VB Data Control is used to attach an
existing database, providing a link
between your application and your data.
• Various controls - such as
– labels
– images
– text boxes
can be connected to the data control.
135CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Creating a Database Application
Step 1
• Create a table in MS-Access
• Save as, student
• Enter any five records
Field Name DataType FieldSize
Code Number Integer
Name Text 50
Primary
Key
136CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Creating a Database Application
Step 2
• Design the following form in VB
Text Box
Data
137CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Creating a Database Application
Step 3
Connecting the Data Control
• Select Data1
• In the property window,
• Select Database Name - Student
• Select Record Source (Table Name) - Student
• Select Text1
• In the property window,
• Select Data Source – Data1
• Select Data Field - Code
• Select Text2
• In the property window,
• Select Data Source – Data1
• Select Data Field - Name
138CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Create a table in MS-Access
Save Database as : grade
Save Table as: grade
Field name Fieldtype
S_Code Number
Name Text
G_Vb Text
G_Datastructure Text
G_P_A Text
139CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Design the form grade in VB
140CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
• Double click on calculate G.P.A.
Text5 = (Val(Text3) + Val(Text4)) / 2
• Double click on addnew
Data1.Recordset.AddNew
Text1.SetFocus
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
141CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
• Double click on delete
Data1.Recordset.Delete
Data1.Recordset.Movefirst
Double click on edit
Data1.Recordset.Edit
Text1.SetFocus
142CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
• Double click on save
Data1.Recordset.Fields(“S_Code”) = Text1
Data1.Recordset.Fields(“Name”) = Text2
Data1.Recordset.Fields(“Grade_Vb”) = Text3
Data1.Recordset.Fields(“Grade_Datastructure”) = Text4
Data1.Recordset.Fields(“G_P_A”) = Text5
Data1.Recordset.Update
Data1.Recordset.refresh
143CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Phone book Application
144CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Designing Status bar
• Right click on the Toolbox
• Select Microsoft Windows Common Controls 6.0
• Click Ok
• Double click on the status bar
• Select the status bar
• Right click
• Click on Properties
• Select Panels
145CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Designing Status bar
146CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Designing Status bar
• Index 1
• Text Date
• Click on Insert Panel
• Index 2
• Text Time
• Click OK
147CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Writing Code
• Double click on form
Private Sub Form_Load()
StatusBar1.Panels(1) = Date
StatusBar1.Panels(2) = Time
End Sub
148CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Quiz Project
• Start MS-ACCESS 97
• Save Project as, Quiz
• Save Table 1 as, Computer_Quiz
• Save Table 2 as, Score_Quiz
149CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Table 1 - Computer_Quiz
FieldName DataType
No Autonumber
Question Memo
Option1 Text
Option2 Text
Option3 Text
Answer Number
150CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Table 2 - Score_Quiz
FieldName DataType
Code Autonumber
Name Text
Score Number
151CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Start Visual Basic (VB)
Form1: Password
152CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double click on Command1 (SignIn)
Private Sub Command1_Click()
If Text1 = “lcct” And Text2 = “lcct” Then
Unload Me
Form2.Show
Else
a = MsgBox(“Please Try Again”, vbCritical, vbOK)
Text1 = ""
Text2 = ""
Text1.SetFocus
End If
End Sub
153CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Start Visual Basic (VB)
Form2: Quiz
154CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Connect Data1 (On-line Computer Test)
• Select Data1
• In the property of Data1,
• Database name Quiz
• Recordsource Computer_Quiz
155CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Code
• Double Click on Command 1
Private Sub Command1_Click()
If Data1.Recordset(“Answer”) = Val(Text1) Then
MsgBox “Congratulations!! Correct”
Label9 = Label9 + 1
Data1.Recordset.MoveNext
Else
MsgBox “Sorry!! Wrong”
Data1.Recordset.MoveNext
End If
Text1 = ""
Text1.SetFocus
156CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
If Data1.Recordset.EOF Then
Data1.Recordset.MoveLast
Data2.Recordset.AddNew
Data2.Recordset(“Name”) = Text2
Data2.Recordset(“Score”) = Label9
Data2.Recordset.Update
Data2.Refresh
MsgBox “Thankyou for the test”
End
End If
EndSub
157CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Designing Toolbar
Black Blue Red White Yellow
158CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Select Case Button.Index
Case 1
Form1.BackColor = vbBlack
Case 2
Form1.BackColor = vbBlue
Case 3
Form1.BackColor = vbRed
Case 4
Form1.BackColor = vbWhite
Case 5
Form1.BackColor = vbYellow
End Select
159CopyrightMr.Anjan Mahanta LCCTInternational Studies Program
Select Case Button.Index
Case 1
notepad = Shell(“notepad”, vbNormalFocus)
Case 2
Form2.Show
Case 3
End
End Select

Mais conteúdo relacionado

Mais procurados

The msg box function and the messagebox class
The msg box function and the messagebox classThe msg box function and the messagebox class
The msg box function and the messagebox class
Faisal Aziz
 

Mais procurados (20)

Dom
DomDom
Dom
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 
Vb basics
Vb basicsVb basics
Vb basics
 
Windows form application_in_vb(vb.net --3 year)
Windows form application_in_vb(vb.net --3 year)Windows form application_in_vb(vb.net --3 year)
Windows form application_in_vb(vb.net --3 year)
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 
Microsoft visual basic 6
Microsoft visual basic 6Microsoft visual basic 6
Microsoft visual basic 6
 
Windows form application - C# Training
Windows form application - C# Training Windows form application - C# Training
Windows form application - C# Training
 
The msg box function and the messagebox class
The msg box function and the messagebox classThe msg box function and the messagebox class
The msg box function and the messagebox class
 
Visual Basic menu
Visual Basic menuVisual Basic menu
Visual Basic menu
 
Sdi & mdi
Sdi & mdiSdi & mdi
Sdi & mdi
 
JavaScript - An Introduction
JavaScript - An IntroductionJavaScript - An Introduction
JavaScript - An Introduction
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
 
Filehandling
FilehandlingFilehandling
Filehandling
 
Static and Dynamic webpage
Static and Dynamic webpageStatic and Dynamic webpage
Static and Dynamic webpage
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 
Java input
Java inputJava input
Java input
 

Destaque

Basic controls of Visual Basic 6.0
Basic controls of Visual Basic 6.0Basic controls of Visual Basic 6.0
Basic controls of Visual Basic 6.0
Salim M
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
pbarasia
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
Roger Argarin
 
Visual Basic Codes And Screen Designs
Visual Basic Codes And Screen DesignsVisual Basic Codes And Screen Designs
Visual Basic Codes And Screen Designs
prcastano
 
Menu pop up menu mdi form and playing audio in vb
Menu pop up menu mdi form and playing audio in vbMenu pop up menu mdi form and playing audio in vb
Menu pop up menu mdi form and playing audio in vb
Amandeep Kaur
 

Destaque (20)

Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
Basic controls of Visual Basic 6.0
Basic controls of Visual Basic 6.0Basic controls of Visual Basic 6.0
Basic controls of Visual Basic 6.0
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
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
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
visual basic 6.0
visual basic 6.0visual basic 6.0
visual basic 6.0
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
 
Visual Basic Programming
Visual Basic ProgrammingVisual Basic Programming
Visual Basic Programming
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6
 
Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6
 
Vb file
Vb fileVb file
Vb file
 
The Best Source Code VB
The Best Source Code VBThe Best Source Code VB
The Best Source Code VB
 
Creating a quiz using visual basic 6
Creating a quiz using visual basic 6Creating a quiz using visual basic 6
Creating a quiz using visual basic 6
 
Reporting a one-way anova
Reporting a one-way anovaReporting a one-way anova
Reporting a one-way anova
 
Visual Basic Codes And Screen Designs
Visual Basic Codes And Screen DesignsVisual Basic Codes And Screen Designs
Visual Basic Codes And Screen Designs
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
 
Visual basic 6 black book 2001
Visual basic 6 black book 2001Visual basic 6 black book 2001
Visual basic 6 black book 2001
 
Menu pop up menu mdi form and playing audio in vb
Menu pop up menu mdi form and playing audio in vbMenu pop up menu mdi form and playing audio in vb
Menu pop up menu mdi form and playing audio in vb
 

Semelhante a Visual Basic 6.0

Refinery Blending Problems by Engr. Adefami Olusegun
Refinery Blending Problems by Engr. Adefami OlusegunRefinery Blending Problems by Engr. Adefami Olusegun
Refinery Blending Problems by Engr. Adefami Olusegun
Engr. Adefami Segun, MNSE
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6
comp274
 
Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6
helpido9
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
dhi her
 

Semelhante a Visual Basic 6.0 (20)

Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
 
COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
 
Refinery Blending Problems by Engr. Adefami Olusegun
Refinery Blending Problems by Engr. Adefami OlusegunRefinery Blending Problems by Engr. Adefami Olusegun
Refinery Blending Problems by Engr. Adefami Olusegun
 
C programming for Computing Techniques
C programming for Computing TechniquesC programming for Computing Techniques
C programming for Computing Techniques
 
Python for Machine Learning
Python for Machine LearningPython for Machine Learning
Python for Machine Learning
 
Algorithm.pdf
Algorithm.pdfAlgorithm.pdf
Algorithm.pdf
 
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHESC LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
 
Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6Cis 355 ilab 4 of 6
Cis 355 ilab 4 of 6
 
Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6Cis 355 i lab 4 of 6
Cis 355 i lab 4 of 6
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
Programming_Lecture_1.pptx
Programming_Lecture_1.pptxProgramming_Lecture_1.pptx
Programming_Lecture_1.pptx
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
 
Devry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menuDevry cis-170-c-i lab-6-of-7-menu
Devry cis-170-c-i lab-6-of-7-menu
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
 
Fundamentals of programming with C++
Fundamentals of programming with C++Fundamentals of programming with C++
Fundamentals of programming with C++
 
L1
L1L1
L1
 
Cis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.comCis 115 Education Redefined-snaptutorial.com
Cis 115 Education Redefined-snaptutorial.com
 
SPF WinForm Programs
SPF WinForm ProgramsSPF WinForm Programs
SPF WinForm Programs
 
Lect02 Introducing Programming.ppt
Lect02 Introducing Programming.pptLect02 Introducing Programming.ppt
Lect02 Introducing Programming.ppt
 

Mais de Anjan Mahanta

Mais de Anjan Mahanta (20)

Paper 2 – Exam Revision Notes.pdf
Paper 2 – Exam Revision Notes.pdfPaper 2 – Exam Revision Notes.pdf
Paper 2 – Exam Revision Notes.pdf
 
Project management part 2
Project management part 2Project management part 2
Project management part 2
 
Project management part 1
Project management part 1Project management part 1
Project management part 1
 
13.03 - Satellite communication systems
13.03 - Satellite communication systems13.03 - Satellite communication systems
13.03 - Satellite communication systems
 
13.02 Network Security
13.02   Network Security13.02   Network Security
13.02 Network Security
 
13.01 Network Components
13.01   Network Components13.01   Network Components
13.01 Network Components
 
The role and impact of IT in society
The role and impact of IT in societyThe role and impact of IT in society
The role and impact of IT in society
 
Emerging Technologies
Emerging TechnologiesEmerging Technologies
Emerging Technologies
 
Conditional statistical functions
Conditional statistical functionsConditional statistical functions
Conditional statistical functions
 
Spreadsheet if and nested if function
Spreadsheet if and nested if functionSpreadsheet if and nested if function
Spreadsheet if and nested if function
 
Spreadsheet lookup functions
Spreadsheet lookup functionsSpreadsheet lookup functions
Spreadsheet lookup functions
 
Spreadsheet text functions
Spreadsheet text functionsSpreadsheet text functions
Spreadsheet text functions
 
Spreadsheet Date & Time Functions
Spreadsheet Date & Time FunctionsSpreadsheet Date & Time Functions
Spreadsheet Date & Time Functions
 
Networks and the effects of using them
Networks and the effects of using themNetworks and the effects of using them
Networks and the effects of using them
 
Scratch Animation
Scratch AnimationScratch Animation
Scratch Animation
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Storage devices and media
Storage devices and mediaStorage devices and media
Storage devices and media
 
Using Network
Using NetworkUsing Network
Using Network
 
The Digital Divide
The Digital DivideThe Digital Divide
The Digital Divide
 
Chapter 4 E-Safety and Health & Safety
Chapter 4 E-Safety and Health & SafetyChapter 4 E-Safety and Health & Safety
Chapter 4 E-Safety and Health & Safety
 

Último

Último (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Visual Basic 6.0