"Kerja Keras" "Password Anda Benar.... " "Menghitung Gaji": Form1 Object Eventargs Msgboxstyle Form2
"Kerja Keras" "Password Anda Benar.... " "Menghitung Gaji": Form1 Object Eventargs Msgboxstyle Form2
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox7.Text = ""
TextBox1.Focus()
End Sub
Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Label5.Click
If Label9.Text = "direktur" Then
TextBox2.Text = 1500000
ElseIf Label9.Text = "manager" Then
TextBox2.Text = 1000000
ElseIf Label9.Text = "staff" Then
TextBox2.Text = 750000
ElseIf Label9.Text = "biasa" Then
TextBox2.Text = 500000
Else
MsgBox("Tidak ada jabatan!!!!", MsgBoxStyle.Information, Title:="gaji error")
End If
End Sub
Private Sub Label6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Label6.Click
If Label9.Text = "direktur" Then
TextBox3.Text = 7 / 100 * TextBox2.Text
ElseIf Label9.Text = "manager" Then
TextBox3.Text = 7 / 100 * TextBox2.Text
ElseIf Label9.Text = "staff" Then
TextBox3.Text = 0 / 100 * TextBox2.Text
ElseIf Label9.Text = "biasa" Then
TextBox3.Text = 0 / 100 * TextBox2.Text
Else
MsgBox("Tidak ada jabatan!!!!", MsgBoxStyle.Information, Title:="gaji error")
End If
End Sub
Private Sub Label8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Label8.Click
Dim c As Integer
c = Val(TextBox4.Text)
If c <= 2 Then
TextBox5.Text = c * 5 / 100 * TextBox2.Text
Else
MsgBox("Anak melebihi kuota!!!!", MsgBoxStyle.Information, Title:="gaji error")
End If
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
Dim c As MsgBoxResult
c = MsgBox("kembali????", MsgBoxStyle.Question + vbYesNo, Title:="back")
If c = vbYes Then
Form1.Show()
Me.Hide()
Form1.TextBox1.Text = ""
Form1.TextBox2.Text = ""
Form1.TextBox3.Text = ""
Form1.TextBox4.Text = ""
Form1.TextBox1.Focus()
Else
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox7.Text = ""
TextBox1.Focus()
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Dim a, b, c As Double
Dim d As Double
a = Val(TextBox2.Text)
b = Val(TextBox3.Text)
c = Val(TextBox5.Text)
d=a+b+c
TextBox7.Text = Str(d)
End Sub