0% found this document useful (0 votes)
42 views

Calapano, Iñigo John Joshua M. August 24, 201 7 Css-A Ms. Leori Ignacio

The document describes a Visual Basic program with multiple forms, buttons, checkboxes and textboxes. It contains code to: 1. Clear checkboxes and textboxes when certain buttons are clicked. 2. Perform calculations based on which radio buttons and checkboxes are selected and display results in textboxes. 3. Display a message with the selected radio button, checkbox and time/date labels that update every tick of a timer.

Uploaded by

Voughn Caintic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Calapano, Iñigo John Joshua M. August 24, 201 7 Css-A Ms. Leori Ignacio

The document describes a Visual Basic program with multiple forms, buttons, checkboxes and textboxes. It contains code to: 1. Clear checkboxes and textboxes when certain buttons are clicked. 2. Perform calculations based on which radio buttons and checkboxes are selected and display results in textboxes. 3. Display a message with the selected radio button, checkbox and time/date labels that update every tick of a timer.

Uploaded by

Voughn Caintic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Calapano, Iñigo John Joshua M.

August 24, 201 7


CSS-A Ms. Leori Ignacio

Public Class Form1

Private Sub Timer1_Tick(sender As Object, e As EventArgs)

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


CheckBox1.Checked = False
CheckBox2.Checked = False
CheckBox3.Checked = False
CheckBox4.Checked = False
CheckBox5.Checked = False
CheckBox6.Checked = False
TextBox2.Text = ""

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


RadioButton1.Checked = False
RadioButton2.Checked = False
RadioButton3.Checked = False
RadioButton4.Checked = False
RadioButton5.Checked = False
RadioButton6.Checked = False
RadioButton7.Checked = False
RadioButton8.Checked = False
RadioButton9.Checked = False
RadioButton10.Checked = False
CheckBox1.Checked = False
CheckBox2.Checked = False
CheckBox3.Checked = False
CheckBox4.Checked = False
CheckBox5.Checked = False
CheckBox6.Checked = False
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click


End
End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click


Dim S, B, F, J, C As Integer
If RadioButton1.Checked Then
S = 100
End If
If RadioButton2.Checked Then
B = 150
End If
If RadioButton3.Checked Then
F = 200
End If
If RadioButton4.Checked Then
J = 0
End If
If RadioButton5.Checked Then
C = 50%
End If
TextBox1.Text = S + B + F + J + C

Dim D, FJ, A As Integer


If RadioButton6.Checked Then
D = 20
End If
If RadioButton7.Checked Then
FJ = 15
End If
If RadioButton8.Checked Then
A = 20
End If
TextBox3.Text = D + FJ + A

Dim Z, X, V, L, N, M As Integer
If CheckBox1.Checked Then
Z = 10
End If
If CheckBox2.Checked Then
X = 10
End If
If CheckBox3.Checked Then
V = 10
End If
If CheckBox4.Checked Then
L = 10
End If
If CheckBox5.Checked Then
N = 10
End If
If CheckBox6.Checked Then
M = 10
End If
TextBox2.Text = Z + X + V + L + N + M
Dim K, O, P As Integer
K = Val(TextBox1.Text)
O = Val(TextBox2.Text)
P = Val(TextBox3.Text)
TextBox4.Text = K + O + P

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


Dim INIGO As String
If RadioButton1.Checked Then
INIGO = INIGO + RadioButton1.Text + vbNewLine
End If
If RadioButton2.Checked Then
INIGO = INIGO + RadioButton2.Text + vbNewLine
End If
If RadioButton3.Checked Then
INIGO = INIGO + RadioButton3.Text + vbNewLine
End If
If RadioButton4.Checked Then
INIGO = INIGO + RadioButton4.Text + vbNewLine
End If
If RadioButton5.Checked Then
INIGO = INIGO + RadioButton5.Text + vbNewLine
End If
If RadioButton6.Checked Then
INIGO = INIGO + RadioButton6.Text + vbNewLine
End If
If RadioButton7.Checked Then
INIGO = INIGO + RadioButton7.Text + vbNewLine
End If
If RadioButton8.Checked Then
INIGO = INIGO + RadioButton8.Text + vbNewLine
End If
If RadioButton9.Checked Then
INIGO = INIGO + RadioButton9.Text + vbNewLine
End If
If RadioButton10.Checked Then
INIGO = INIGO + RadioButton10.Text + vbNewLine
End If
If CheckBox1.Checked Then
INIGO = INIGO + CheckBox1.Text + vbNewLine
End If
If CheckBox2.Checked Then
INIGO = INIGO + CheckBox2.Text + vbNewLine
End If
If CheckBox3.Checked Then
INIGO = INIGO + CheckBox3.Text + vbNewLine
End If
If CheckBox4.Checked Then
INIGO = INIGO + CheckBox4.Text + vbNewLine
End If
If CheckBox5.Checked Then
INIGO = INIGO + CheckBox5.Text + vbNewLine
End If
If CheckBox6.Checked Then
INIGO = INIGO + CheckBox6.Text + vbNewLine
End If
MessageBox.Show(INIGO + vbNewLine)

End Sub

Private Sub Timer1_Tick_1(sender As Object, e As EventArgs) Handles Timer1.Tick


Label1.Text = DateAndTime.Now.ToString("dddd, MMMM, dd, yyyy")
Label2.Text = DateAndTime.Now.ToString("hh:mm:ss:tt")
End Sub
End Class

You might also like