How to make a simple calculator using visual basic 6.0

Опубликовано: 06 Июнь 2026
на канале: Md. Tariqul Islam
304
8

How to make a simple calculator using visual basic 6.0

This video about simple,How-to,Make (software),vb6calculator.

==================source code ==================
Private Sub Command1_Click()
Dim a As Integer, b As Integer, s As Integer
a = Val(Text1)
b = Val(Text2)
s = a + b
Text3 = s
End Sub

Private Sub Command2_Click()
Dim a As Integer, b As Integer, sb As Integer
a = Val(Text1)
b = Val(Text2)
sb = a - b
Text3 = sb
End Sub

Private Sub Command3_Click()
Dim a As Integer, b As Integer, m As Integer
a = Val(Text1)
b = Val(Text2)
m = a * b
Text3 = m
End Sub

Private Sub Command4_Click()
Dim a As Integer, b As Integer
Dim d As Double
a = Val(Text1)
b = Val(Text2)
d = a / b
Text3 = d
End Sub

watch next video from below link:
   • program to calculate prime number between ...