Dan ini Listing programnya
- Public Class Form2
- Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- ComboBox1.Items.Add("12110096")
- ComboBox1.Items.Add("12110097")
- ComboBox1.Items.Add("12110098")
- ComboBox2.Items.Add("88888888")
- ComboBox2.Items.Add("99999999")
- ComboBox2.Items.Add("11111111")
- ComboBox3.Items.Add("k01")
- ComboBox3.Items.Add("k02")
- ComboBox3.Items.Add("k03")
- Dim i As Integer
- For i = 100 To 30 Step -1
- ComboBox4.Items.Add(i)
- ComboBox5.Items.Add(i)
- ComboBox6.Items.Add(i)
- ComboBox7.Items.Add(i)
- Next
- TextBox1.Enabled = False
- TextBox2.Enabled = False
- TextBox3.Enabled = False
- TextBox4.Enabled = False
- TextBox5.Enabled = False
- textbox6.Enabled = False
- textbox7.Enabled = False
- textbox8.Enabled = False
- End Sub
- Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesComboBox1.SelectedIndexChanged
- Select Case ComboBox1.Text
- Case "12110096"
- TextBox1.Text = "reza ariansyah"
- TextBox2.Text = "S1"
- TextBox3.Text = "TI"
- Case "12110097"
- TextBox1.Text = "jailamm igaph S"
- TextBox2.Text = "S1"
- TextBox3.Text = "TI"
- Case "12110098"
- TextBox1.Text = "agus setiawan"
- TextBox2.Text = "S1"
- TextBox3.Text = "TI"
- Case Else
- TextBox1.Text = ""
- TextBox2.Text = ""
- TextBox3.Text = ""
- End Select
- End Sub
- Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesComboBox2.SelectedIndexChanged
- Select Case ComboBox2.Text
- Case "88888888"
- TextBox4.Text = "mesran m.kom"
- Case "99999999"
- TextBox4.Text = "abdul asani sembiring m.kom"
- Case "11111111"
- TextBox4.Text = "mr.x"
- End Select
- End Sub
- Private Sub ComboBox3_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesComboBox3.SelectedIndexChanged
- Select ComboBox3.Text
- Case "k01"
- TextBox5.Text = "program visual"
- Case "k02"
- TextBox5.Text = "sistem operasi"
- Case "k03"
- TextBox5.Text = "basis data"
- End Select
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- textbox6.Text = 0.1 * ComboBox4.Text + 0.15 * ComboBox5.Text + 0.3 * ComboBox6.Text + 0.45 *ComboBox6.Text
- If textbox6.Text >= 90 Then
- textbox7.Text = "A"
- textbox8.Text = "lulus"
- ElseIf textbox6.Text >= 80 Then
- textbox7.Text = "B"
- textbox8.Text = "lulus"
- ElseIf textbox6.Text >= 70 Then
- textbox7.Text = "C"
- textbox8.Text = "lulus"
- ElseIf textbox6.Text >= 60 Then
- textbox7.Text = "D"
- textbox8.Text = "lulus"
- Else
- textbox7.Text = "E"
- textbox8.Text = "tidak lulus"
- End If
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- TextBox1.Text = ""
- TextBox2.Text = ""
- TextBox3.Text = ""
- TextBox4.Text = ""
- TextBox5.Text = ""
- ComboBox1.Text = ""
- ComboBox2.Text = ""
- ComboBox3.Text = ""
- ComboBox4.Text = ""
- ComboBox5.Text = ""
- textbox6.Text = ""
- textbox7.Text = ""
- ComboBox6.Text = ""
- ComboBox7.Text = ""
- End Sub
- Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
- Me.Close()
- End Sub
- End Class
0 comments:
Posting Komentar